public ActionResult EditChargePile(string cpId) { ViewBag.AllBase = ChargeService.GetAllChargingBaseEntity().Where(t => t.IsUse == 1).ToList(); if (string.IsNullOrEmpty(cpId)) { ViewBag.ChargePile = new ChargingPileEntity(); } else { ViewBag.ChargePile = ChargeService.GetChargingPileEntityById(cpId.ToLong(0)); } return(View()); }