예제 #1
0
        public IHttpActionResult DeleteAllNotification(List <DataModels.Notification> Notifications)
        {
            foreach (var not in Notifications)
            {
                NotificationsService.DeleteNotification(not.Id);
            }

            return(Ok(NotificationsService.GetNotifications()));
        }
예제 #2
0
 public IHttpActionResult DeleteNotification(int id)
 {
     NotificationsService.DeleteNotification(id);
     return(Ok());
 }
예제 #3
0
 public IHttpActionResult UpdateDetails(JObject data)
 {
     NotificationsService.UpdateDetails(data);
     return(Ok());
 }
예제 #4
0
 public IHttpActionResult CreateNotification(JObject notification)
 {
     NotificationsService.CreateNotification(notification);
     return(Ok());
 }
예제 #5
0
 public IHttpActionResult GetMessagesList()
 {
     return(Ok(NotificationsService.GetMessages()));
 }
예제 #6
0
 public IHttpActionResult GetNotifications()
 {
     return(Ok(NotificationsService.GetNotifications()));
 }