Esempio n. 1
0
 public bool ActivateDeactivateUser(SessionContext sessionContext, ActivateDeactivateUser activateDeactivateUser)
 {
     try
     {
         return(_userRepository.ActivateDeactivateUser(activateDeactivateUser));
     }
     catch (Exception ex)
     {
         _logger.LogException(new ExceptionLog
         {
             ExceptionDate   = DateTime.Now,
             ExceptionMsg    = ex.Message,
             ExceptionSource = ex.Source,
             ExceptionType   = "UserService",
             FullException   = ex.StackTrace
         });
         return(false);
     }
 }