public async Task <ActionResult <SubcategoryPresenter> > Post([FromBody] SubcategoryCreateParameter subcategory) { var result = await _subcategoryService.Create(subcategory.ToModel()); return(CreatedAtAction(nameof(Get), new { subcategoryCode = result.Code }, new SubcategoryPresenter(result))); }