Exemplo n.º 1
0
        public async Task <IActionResult> CreateCategory(CategoryFormDto dto)
        {
            var category = await _categoryBusiness.CreateCategoryAsync(dto);

            return(CreatedAtAction(nameof(GetCategory), new { category.Id }, category));
        }