public async Task <IActionResult> UserRegister(UserDetails user) { try { await _iUserManagementHelper.UserRegister(user); return(Ok("success")); } catch (Exception e) { return(NotFound(e.StackTrace)); } }
public async Task <IActionResult> UserRegister(UserDetails userDetails) { try { await _iUserManagementHelper.UserRegister(userDetails); return(Ok()); } catch (Exception ex) { return(NotFound(ex.InnerException.Message)); } }
public async Task <IActionResult> UserRegister(UserDetails user) { log.Info("In UserController : UserRegister(UserDetails user)"); try { //Register new user passing object as parameter await _iUserManagementHelper.UserRegister(user); return(Ok("success")); } catch (Exception e) { log.Error("Exception UserController: UserRegister(UserDetails user)" + e.Message); return(NotFound(e.StackTrace)); } }