public async Task <ActionResult <SubcategoryPresenter> > Get(long subcategoryCode) { var result = await _subcategoryService.Get(subcategoryCode); if (result is null) { return(NotFound()); } return(new SubcategoryPresenter(result)); }
public IActionResult Get() { return(Ok(_subcategoryService.Get())); }