public bool ManageNotificationGroups(NotificationGroupsModel entity) { try { notificationRepository.ManageNotificationGroups(entity); return true; } catch { return false; } }
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); } } }