public bool UpdateNotificationStatus(NotificationModel entity) { try { notificationRepository.UpdateNotificationStatus(entity); return true; } catch { return false; } }
public bool AddNotification(NotificationModel entity) { try { notificationRepository.AddNotification(entity); return true; } catch { return false; } }
public HttpResponseMessage AddNotification(NotificationModel obj) { using (NotificationTier mt = new NotificationTier()) { try { return this.Request.CreateResponse(HttpStatusCode.OK, mt.AddNotification(obj)); } catch (Exception ex) { return this.Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message); } } }