public async Task <IActionResult> UserLogin(UserLogin user) { try { return(Ok(await _iUserManagementHelper.UserLogin(user))); } catch (Exception ex) { return(NotFound(ex.InnerException.Message)); } }
public async Task <IActionResult> UserLogin(UserLogin user) { try { //null checking return(Ok(await _iUserManagementHelper.UserLogin(user))); } catch (Exception e) { return(NotFound(e.Message)); } }
public async Task <IActionResult> UserLogin(UserLogin user) { log.Info("In UserController : UserLogin(UserLogin user)"); try { //null checking return(Ok(await _iUserManagementHelper.UserLogin(user))); } catch (Exception e) { log.Error("Exception UserController: UserLogin(UserLogin user)" + e.Message); return(NotFound(e.Message)); } }
public async Task <IActionResult> UserLogin(string userName, string password) { try { UserDetails user = await _iUserManagementHelper.UserLogin(userName, password); if (user == null) { return(Ok("Invalid User")); } else { return(Ok(user)); } } catch (Exception ex) { return(NotFound(ex.InnerException.Message)); } }