Пример #1
0
        public ActionResult IsLowerThanActivityPrice(string pid, decimal price)
        {
            var data = PriceManager.GetFlashSalePriceByPID(pid);

            if (data == null || !data.Any())
            {
                return(Json(1));
            }
            else
            {
                return(Json(data.Any(_ => _.Price >= price) ? 0 : 1));
            }
        }
Пример #2
0
 public ActionResult GetFlashSalePriceByPid(string pid)
 {
     return(Json(PriceManager.GetFlashSalePriceByPID(pid), JsonRequestBehavior.AllowGet));
 }