private void CheckEntityName(string entityFullName) { if (!_dynamicEntityPropertyDefinitionManager.ContainsEntity(entityFullName)) { throw new ApplicationException($"Unknown entity {entityFullName}."); } }
public IActionResult ManageAll(string entityFullName, string entityId) { if (entityFullName.IsNullOrWhiteSpace()) { throw new ArgumentNullException(nameof(entityFullName)); } if (entityId.IsNullOrWhiteSpace()) { throw new ArgumentNullException(nameof(entityId)); } if (!_dynamicEntityPropertyDefinitionManager.ContainsEntity(entityFullName)) { throw new UserFriendlyException(L("UnknownEntityType", entityFullName)); } return(View(new DynamicEntityPropertyValueManageAllViewModel { EntityFullName = entityFullName, EntityId = entityId })); }