Beispiel #1
0
 public override ActionResult Edit(Guid id)
 {
     try
     {
         Model = _supplierFacade.Edit(id);
         return(View(Model));
     }
     catch (Exception ex)
     {
         AddError(ex);
         return(RedirectToReferrer());
     }
 }
Beispiel #2
0
 public JsonResult Edit(SupplierModel model)
 {
     model.editedBy = _context.CurrentAccount.AccountId;
     _supplierFacade.Edit(model);
     return(Json(new { success = true }));
 }