Esempio n. 1
0
 public bool ManageNotificationGroups(NotificationGroupsModel entity)
 {
     try
     {
         notificationRepository.ManageNotificationGroups(entity);
         return true;
     }
     catch
     {
         return false;
     }
 }
Esempio n. 2
0
 public HttpResponseMessage ManageNotificationGroups(NotificationGroupsModel obj)
 {
     using (NotificationTier mt = new NotificationTier())
     {
         try
         {
             return this.Request.CreateResponse(HttpStatusCode.OK, mt.ManageNotificationGroups(obj));
         }
         catch (Exception ex)
         {
             return this.Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message);
         }
     }
 }