Пример #1
0
        public ActionResult ChargePile(string name, int status = -1, int cid = -1)
        {
            List <ChargingPileEntity> mList = null;

            if (!string.IsNullOrEmpty(name) || status > -1 || cid > -1)
            {
                mList = ChargeService.GetChargingPileInfoByRule(name, status, cid);
            }
            else
            {
                mList = ChargeService.GetAllChargingPileEntity();
            }
            ViewBag.Name       = name ?? "";
            ViewBag.Status     = status;
            ViewBag.ChargePile = mList;
            return(View());
        }