Beispiel #1
0
        /// <summary>   Authenticates the team leader. </summary>
        ///
        /// <exception cref="Exception">    Thrown when an exception error condition occurs. </exception>
        ///
        /// <param name="username"> The username. </param>
        /// <param name="password"> The password. </param>
        ///
        /// <returns>   A TeamLeader. </returns>

        public TeamLeader Authenticate(string username, string password)
        {
            if (username == "" || password == "")
            {
                throw new Exception("Missing Data");
            }
            return(dao.Authenticate(username, password));
        }
Beispiel #2
0
 /// <summary>
 /// Authenticate the customer.
 /// </summary>
 /// <param name="username"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 public TeamLeader Authenticate(string username, string password)
 {
     ///<summary>Server side validation which ensures that the password and username are provided. </summary>
     if (username == "" || password == "")
     {
         throw new Exception("Missing Data");
     }
     return(dao.Authenticate(username, password));
 }