예제 #1
0
        public IActionResult Post(NewUser user)
        {
            var newUser = automapper.Map <NewUser, User>(user);

            appServices.CreateUser(newUser);

            return(Ok("HttpCode 200 OK"));
        }
예제 #2
0
 public IActionResult Post(User newUser)
 {
     appServices.CreateUser(newUser);
     return(Ok("HttpCode 200 OK"));
 }