public async Task <MobileResponse <bool> > Read(UpdateNotificationInput input) { try { var result = await _notificationServices.UpdateReadStatusAsync(CurrentUser.Id, input.Ids, true); return(MobileResponse <bool> .Create(MobileStatusCode.Success, null, result)); } catch (Exception ex) { _loggerServices.WriteError(ex.ToString()); return(MobileResponse <bool> .Create(MobileStatusCode.Error, ex.ToString(), false)); } }
public async Task <JsonResult> DeleteAll(UpdateNotificationInput input) { var messages = await _notificationServices.DeleteAsync(CurrentUser.Id, input.Ids); return(Json(messages, JsonRequestBehavior.AllowGet)); }
public async Task <JsonResult> UpdateStatus(UpdateNotificationInput input) { var messages = await _notificationServices.UpdateReadStatusAsync(CurrentUser.Id, input.Ids, true); return(Json(messages, JsonRequestBehavior.AllowGet)); }