public bool AddUserRole(int UserID, string RoleName)
 {
     try
     {
         if (UserID == 0 || RoleName == null || RoleName == "")
         {
             return(false);
         }
         return(_userDao.AddUserRole(UserID, RoleName));
     }
     catch (Exception ex)
     {
         MyLogger.AddLog(ex.Message, ex.StackTrace);
         Logger.Log.Error(ex.Message);
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool AddUserRole(string login, string role) => _userDao.AddUserRole(login, role);