public IHttpActionResult DeleteAllNotification(List <DataModels.Notification> Notifications) { foreach (var not in Notifications) { NotificationsService.DeleteNotification(not.Id); } return(Ok(NotificationsService.GetNotifications())); }
public IHttpActionResult DeleteNotification(int id) { NotificationsService.DeleteNotification(id); return(Ok()); }
public IHttpActionResult UpdateDetails(JObject data) { NotificationsService.UpdateDetails(data); return(Ok()); }
public IHttpActionResult CreateNotification(JObject notification) { NotificationsService.CreateNotification(notification); return(Ok()); }
public IHttpActionResult GetMessagesList() { return(Ok(NotificationsService.GetMessages())); }
public IHttpActionResult GetNotifications() { return(Ok(NotificationsService.GetNotifications())); }