Esempio n. 1
0
 /// <summary> Authenticates the customer. </summary>
 ///
 /// <param name="name"> Customer's user name: NOT the full name </param>
 /// <param name="password"> Customer's secret password </param>
 /// <returns> The unique customer Id. </returns>
 public int Authenticate(string username, string password)
 {
     ///<remark> Server side validation ensures that the password and username are provided. </remark>
     if (username == "" || password == "")
     {
         throw new Exception("Missing Data");
     }
     return(dao.Authenticate(username, password));
 }
Esempio n. 2
0
 /// <summary> Authenticates the customer. </summary>
 ///
 /// <param name="name"> Customer's user name: NOT the full name </param>
 /// <param name="password"> Customer's secret password </param>
 /// <returns> The unique customer Id. </returns>
 public int Authenticate(string name, string password)
 {
     return(dao.Authenticate(name, password));
 }