public int Authenticate(string username, string password) { if (username == "" || password == "") { throw new Exception("Missing Data"); } return(dao.Authenticate(username, password)); }
/// <summary> /// Authenticates the user. /// </summary> /// <param name="username"></param> /// <param name="password"></param> /// <returns></returns> public int Authenticate(string username, string password) { ///<remarks> Server-side validation to ensure that the username and password are provided. </remarks> if (username == "" || password == "") { throw new Exception("Missing Data"); } return(dao.Authenticate(username, password)); }