コード例 #1
0
        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");
        }
コード例 #2
0
 public ActionResult UpdateDisbursement(DisburmentDTO disDto)
 {
     return(Json(restService.UpdateDisbursementsOfClerk(disDto), JsonRequestBehavior.AllowGet));
 }