public string UpdateDisbursementsOfClerk(DisburmentDTO dto) { foreach (var item in dto.Items) { Inventory i = new Inventory() { ItemId = item.itemId }; DisbursementListDetails disbursementDetails = new DisbursementListDetails() { Quantity = item.quantity, Item = i }; DisbursementListService.UpdateDisbursementListDetails(dto.ListId, disbursementDetails); } return("Success"); }
public ActionResult UpdateDisbursement(DisburmentDTO disDto) { return(Json(restService.UpdateDisbursementsOfClerk(disDto), JsonRequestBehavior.AllowGet)); }