예제 #1
0
        public async Task <Guid> Add(AddProductCategoryModel model)
        {
            var id = Guid.NewGuid();
            await _service.Add(new ProductCategory(new Id(id), new Title(model.Title), new ProductCategoryShortDescription(model.ShortDescription), new Image(model.ImageId)));

            return(id);
        }