public ActionResult Edit(long id) { var model = new CreateEditViewModel(); var productCategory = productCategoryProvider.GetProductCategory(id); mapper.Map(productCategory, model); return(PartialView("CreateEdit", model)); }
public ActionResult Edit(long id) { var model = new CreateEditViewModel(); var productCategory = productCategoryProvider.GetProductCategory(id); mapper.Map(productCategory, model); return(PartialView("CreateEdit", model)); }