示例#1
0
        public CreateCategoryResponse SaveCategory(CreateCategoryRequest createCategoryRequest)
        {
            var category = messageMapper.MapToCategory(createCategoryRequest.Category);

            categoryRepository.SaveCategory(category);
            var createbrandresponse = new CreateCategoryResponse {
                Category = messageMapper.MapToCategoryDto(category)
            };

            return(createbrandresponse);
        }