public FreeSIPC getSIPCLists(int reqId, int CommodityID) { var hubId = _hubAllocationService.GetAllocatedHubId(reqId); List<LedgerService.AvailableShippingCodes> freeSICodes = _ledgerService.GetFreeSICodesByCommodity(hubId, CommodityID); List<LedgerService.AvailableProjectCodes> freePCCodes = _ledgerService.GetFreePCCodesByCommodity(hubId, CommodityID); FreeSIPC free = new FreeSIPC { FreePCCodes = freePCCodes, FreeSICodes = freeSICodes }; return free; }
public JsonResult http_getSIPCLists(int reqId, int CommodityID) { var hubId = _hubAllocationService.GetAllocatedHubId(reqId); List<LedgerService.AvailableShippingCodes> freeSICodes = _ledgerService.GetFreeSICodesByCommodity(hubId, CommodityID); List<LedgerService.AvailableProjectCodes> freePCCodes = _ledgerService.GetFreePCCodesByCommodity(hubId, CommodityID); FreeSIPC free = new FreeSIPC { FreePCCodes = freePCCodes, FreeSICodes = freeSICodes }; return Json(free, JsonRequestBehavior.AllowGet); }