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

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