// GET: Product/Create public IActionResult Create() { var viewModel = new CreateEditProductViewModel() { Product = new Product(), AllProductCategories = _productCategoryService.GetProductCategories().ToList() }; return(View(viewModel)); }
public async Task <IList <GetProductCategoryDto> > GetProductCategories(int id) { return(await _service.GetProductCategories()); }
// GET: ProductCategory public ActionResult Index() { var model = _productCategoryService.GetProductCategories(); return(View(model)); }