Пример #1
0
        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));
        }
Пример #2
0
        public HttpResponseMessage Get()
        {
            var notifications = new NotificationTypeBusiness().Get();

            return(Request.CreateResponse(HttpStatusCode.OK, notifications));
        }