Пример #1
0
        public HttpResponseMessage Put(int Id, OrganizerUpdateModel req)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            organizerService.Update(req);
            return(Request.CreateResponse(HttpStatusCode.OK));
        }