CapRaffle.Controllers.CategoryController.ModelStateAndCategoryNameIsValid C# (CSharp) Méthode

ModelStateAndCategoryNameIsValid() private méthode

private ModelStateAndCategoryNameIsValid ( Category category ) : bool
category CapRaffle.Domain.Model.Category
Résultat bool
        private bool ModelStateAndCategoryNameIsValid(Category category)
        {
            return ModelState.IsValid && !string.IsNullOrEmpty(category.Name);
        }