public ResponseItem Login(string username, string password) { ResponseItem result = new ResponseItem(); result.Result = true; try { result.Data = _loginUow.Authenticate(username, password); result.Message = "success"; } catch (System.Exception ex) { result.Result = false; result.Message = ex.Message; } return(result); }
public AuthenticateModel Authenticate(string username, string password) { return(_loginUow.Authenticate(username, password)); }