예제 #1
0
        public JsonResult GetCommodities(string receiptAllocationId)
        {
            _receiptAllocationId = Guid.Parse(receiptAllocationId);

            var receiptAllocation = _receiptAllocationService.FindById(_receiptAllocationId);

            return(Json(_commodityService.GetAllCommodityViewModelsByParent(receiptAllocation.CommodityID),
                        JsonRequestBehavior.AllowGet));
        }