public async Task <IActionResult> Register([FromBody] RegisterViewModel user) { // Save the user var result = await _identityLogic.Register(user); if (result) { return(Ok("Successfully registered")); } return(BadRequest("Failed to register")); }
public async Task <IActionResult> Register([FromBody] RegisterViewModel user) { // Save the user var result = await _identityLogic.Register(user); if (result) { return(Ok("Successfully registered")); } return(BadRequest("Failed to register")); }