public ActionResult Edit(Guid idA) { VMEditA vmEditA = new VMEditA(); // mapping visual model to DTO DTOModelA dtoModelA = new DTOModelA(); // ex. with FEATURE //vmEditA = ABaseController_WebStoreInstance.WebStore_CoreSupplierInstance.GetFeatureA.EditGet(vmEditA) as VMEditA; return(View(vmEditA)); }
public ActionResult Edit(VMEditA vmEditA) { if (ModelState.IsValid) { try { // ex. with FEATURE //ABaseController_WebStoreInstance.WebStore_CoreSupplierInstance.GetFeatureA.EditPost(vmEditA); } catch (Exception exception) { throw new HttpException(500, exception.Message, exception); } } return(RedirectToAction("List")); }