public HttpResponseMessage NotificationDelete(DeleteNotificationViewModel viewModel) { DeleteNotificationResponse response = userService.DeleteNotification(new DeleteNotificationRequest() { NotificationIds = viewModel.NotificationIds, IsBulkDelete = viewModel.IsBulkDelete, ModuleId = viewModel.ModuleId, ArePreviousNotifications = viewModel.ArePreviousNotifications, RequestedBy = this.UserId }); return(Request.BuildResponse(response)); }
public HttpResponseMessage DeleteNotification(string deleteViewModel) { DeleteNotificationViewModel notificationsViewModel = new DeleteNotificationViewModel(); if (deleteViewModel != null) { notificationsViewModel = JsonConvert.DeserializeObject <DeleteNotificationViewModel>(deleteViewModel); } DeleteNotificationResponse response = userService.DeleteNotification(new DeleteNotificationRequest() { NotificationIds = notificationsViewModel.NotificationIds, IsBulkDelete = notificationsViewModel.IsBulkDelete, ModuleId = notificationsViewModel.ModuleId, ArePreviousNotifications = notificationsViewModel.ArePreviousNotifications, RequestedBy = this.UserId }); return(Request.BuildResponse(response)); }