Beispiel #1
0
 public bool UpdateNotificationStatus(NotificationModel entity)
 {
     try
     {
         notificationRepository.UpdateNotificationStatus(entity);
         return true;
     }
     catch
     {
         return false;
     }
 }
Beispiel #2
0
 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);
         }
     }
 }