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