public bool AddVisitTimes(Int32 id)
 {
     UserBL bl = new UserBL();
     User user = bl.GetUserByID(id);
     return bl.AutoAddVisitedTime(user);
 }
 public User Regist(String userName,String password,int gender)
 {
     UserBL bl = new UserBL();
     User user = new User();
     user.userName = userName;
     user.userPassword = password;
     user.gender = gender;
     try
     {
         return bl.Regist(user);
     }
     catch
     {
         return null;
     }
 }
 public User Login(String userName, String password)
 {
     UserBL bl = new UserBL();
     User user = new User();
     user.userName = userName;
     user.userPassword = password;
     return bl.Login(user);
 }
 public bool IsExisted(String userName)
 {
     UserBL bl = new UserBL();
     return bl.IsExisted(userName);
 }
 public User FindUserByUserName(String userName)
 {
     UserBL bl = new UserBL();
     return bl.FindUserByUsername(userName);
 }
 public User FindUserByID(Int32 id)
 {
     UserBL bl = new UserBL();
     return bl.GetUserByID(id);
 }