public Response Register(CreateUser createUser)
 {
     if (ModelState.IsValid)
     {
         createUser.validate();
         _response = _acountServices.CreateUser(createUser);
     }
     return(_response);
 }
예제 #2
0
        public async Task <IActionResult> SignUp([FromBody] UserToRegister aUser)
        {
            if (ModelState.IsValid)
            {
                var result = await _accountServices.CreateUser(aUser);

                return(Ok(result));
            }

            return(NotFound());
        }