Пример #1
0
        public HttpResponseMessage PostUser(UserDto user)
        {
            ControllerFactory.GetUserController().Create(user);
            var response = Request.CreateResponse<UserDto>(HttpStatusCode.Created, user);

            return response;
        }
Пример #2
0
 public void PutUser(UserDto user)
 {
     ControllerFactory.GetUserController().Update(user);
 }