public ActionResult EditItem(DeliveryItemEditViewModel model) { if (ModelState.IsValid) { _deliveryItemService.Edit(model.Id, model.Notes); return(RedirectToAction("DeliveryItems", new { deliveryId = model.DeliveryId })); } return(View(model)); }
private void Edit(Guid deliveryItemId, string notes) { try { _deliveryItemForEdit = _deliveryItemService.Edit(deliveryItemId, notes); } catch (DomainValidationException dex) { _domainValidationException = dex; } }