コード例 #1
0
ファイル: PTSCustomerFacade.cs プロジェクト: peterken674/PTS
 /// <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));
 }
コード例 #2
0
ファイル: PTSCustomerFacade.cs プロジェクト: EricNJK/.NetPTS
 /// <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));
 }