public ActionResult Edit(int id) { var model = new CreateEditViewModel(); var region = regionProvider.GetRegion(id); Mapper.DynamicMap(region, model); return(PartialView("CreateEdit", model)); }
public ActionResult Edit(long id) { var model = new CreateEditViewModel(); var visitCategory = regionProvider.GetRegion(id); mapper.Map(visitCategory, model); return(PartialView("CreateEdit", model)); }