Beispiel #1
0
 public static UserProfile CheckLogin(int userID, string password)
 {
     UserAuthorizeService.UserAuthorizeService service = new UserAuthorizeService.UserAuthorizeService();
     UserAuthorizeService.UserProfile user = service.CheckLogin(userID, password);
     if (user == null)
         return null;
     return new UserProfile(userID, user.Name, user.EmployeeTypeID);
 }
 public static void CheckLogout(int userID)
 {
     UserAuthorizeService.UserAuthorizeService service = new UserAuthorizeService.UserAuthorizeService();
     service.CheckLogout(userID);
 }