Пример #1
0
 public bool UpdateUser(SystemUser user)
 {
     try
     {
         UserGetway userGetway = new UserGetway();
         return(userGetway.UpdateUser(user));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
 public SystemUser GetUserById(int id)
 {
     try
     {
         UserGetway userGetway = new UserGetway();
         return(userGetway.GetUserById(id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #3
0
 public bool Login(SystemUser user)
 {
     try
     {
         UserGetway userGetway = new UserGetway();
         return(userGetway.Login(user));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #4
0
 public bool IsUserExist(string email)
 {
     try
     {
         UserGetway userGetway = new UserGetway();
         return(userGetway.IsUserExist(email));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #5
0
 public int RegisterUser(SystemUser user)
 {
     try
     {
         UserGetway userGetway = new UserGetway();
         return(userGetway.RegisterUser(user));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #6
0
 public bool DeleteUser(int userId)
 {
     try
     {
         UserGetway userGetway = new UserGetway();
         return(userGetway.DeleteUser(userId));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #7
0
 public UserBll()
 {
     _userDb = new UserGetway();
 }