show the movie/show title when requesting.

This commit is contained in:
Drewster727 2016-03-26 12:06:52 -05:00
parent 29de229203
commit 5b93282b78
2 changed files with 3 additions and 3 deletions

View file

@ -282,7 +282,7 @@ namespace PlexRequests.UI.Modules
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
NotificationService.Publish(notificationModel);
return Response.AsJson(new JsonResponseModel { Result = true });
return Response.AsJson(new JsonResponseModel { Result = true, Message = $"{model.Title} was successfully added!" });
}
catch (Exception e)
{
@ -408,7 +408,7 @@ namespace PlexRequests.UI.Modules
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
NotificationService.Publish(notificationModel);
return Response.AsJson(new { Result = true });
return Response.AsJson(new JsonResponseModel { Result = true, Message = $"{model.Title} was successfully added!" });
}
private bool CheckIfTitleExistsInPlex(string title, string year)