public bool BanUser(int userId) { try { return(_userIdentityRepository.BanUser(userId, _connectionFactory)); } catch (Exception exception) { DemLogger.Current.Error(exception, $"{nameof(AdminService)}. Error in function {DemLogger.GetCallerInfo()}"); return(false); } }