public async Task <IActionResult> Details(Guid?id) { if (id == null) { return(NotFound()); } var item = await _categoryFacade.GetById(id.Value); return(View(item)); }
public ActionResult <CategoryDetailModel> GetById(Guid id) { var category = categoryFacade.GetById(id); return(category); }