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