public HttpResponseMessage GetByUser(int id) { var notification = new NotificationTypeBusiness().GetByUserId(id); if (notification == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } return(Request.CreateResponse(HttpStatusCode.OK, notification)); }
public HttpResponseMessage Get() { var notifications = new NotificationTypeBusiness().Get(); return(Request.CreateResponse(HttpStatusCode.OK, notifications)); }