/// <summary> /// Authenticates the user. /// </summary> /// <param name="username">The username.</param> /// <param name="password">The password.</param> /// <returns></returns> public bool AuthenticateUser(string username, string password) { int count = _resource.RetrieveUserCountByUsernameAndPassword(username, password); bool isValidUser = (count == 1); return(isValidUser); }