public UserModel ValidateLogin(string userName, string password) { LoginDataAccess obj = new LoginDataAccess(); var result = obj.ValidateLogin(userName, password); return(MapUserDetails(result)); }