public ActionResult EditChargeBase(string cbId) { ViewBag.Province = BaseDataService.GetAllProvince(); ViewBag.PayType = BaseDataService.GetAllPayType(); if (string.IsNullOrEmpty(cbId)) { ViewBag.ChargeBase = new ChargingBaseEntity(); } else { ViewBag.ChargeBase = ChargeService.GetChargingBaseById(cbId.ToInt(0)); } return(View()); }