Example #1
0
 public int Authenticate(string username, string password)
 {
     if (username == "" || password == "")
     {
         throw new Exception("Missing Data");
     }
     return(dao.Authenticate(username, password));
 }
Example #2
0
 /// <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));
 }