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