예제 #1
0
 /// <summary>
 /// validate login credentials of staff member
 /// </summary>
 /// <param name="credentials"></param>
 /// <returns>StaffID</returns>
 public int CheckStaffLogin(Credentials credentials)
 {
     try
     {
         if (credentials != null)
         {
             return(_repository.CheckStaffLogin(credentials));
         }
         else
         {
             throw new NullReferenceException();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }