示例#1
0
        public async Task <ActionResult> GetPriceHedging(string agreementNumber)
        {
            int agreementN;

            if (!int.TryParse(agreementNumber, out agreementN))
            {
                return(new HttpStatusCodeResult(400));
            }

            var supplier = UserManager.GetActiveCustomer(HttpContext);

            if (string.IsNullOrWhiteSpace(supplier.CustomerNo))
            {
                return(HttpNotFound());
            }

            var listPriceHedgings = await _agreementRepository.GetPriceHedgingListAsync(supplier.CustomerNo, agreementNumber);

            return(PartialView("Dialogs/PriceHedgingBody", listPriceHedgings));
        }