public async Task Handle(CreateCategoryCommand command) { var mainCategory = await _mainCategoryRepository.GetByIdAsync(command.MainCategoryId); var category = new Category(command.Title, command.IsActive, command.ImageName); mainCategory.AddFirstLevelOfCategory(category); _mainCategoryRepository.Update(mainCategory); }