public Role GetRoleOrNull(int id) { _logger.Info($"BLL.{nameof(RoleBll)}.{nameof(GetRoleOrNull)}: Getting the role id = " + id); if (_roleDao.IsRole(id)) { _logger.Info($"BLL.{nameof(RoleBll)}.{nameof(GetRoleOrNull)}: Role id = {id} received"); return(_roleDao.GetRole(id)); } else { _logger.Warn($"BLL.{nameof(RoleBll)}.{nameof(GetRoleOrNull)}: Role id = {id} not found"); return(null); } }