CapRaffle.Controllers.CategoryController.ModelStateAndCategoryNameIsValid C# (CSharp) Method

ModelStateAndCategoryNameIsValid() private method

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