public ActionResult Update(Banner info)
 {
     if (info == null || string.IsNullOrEmpty(info.ImgCategory) || string.IsNullOrEmpty(info.ImgUrl))
     {
         return Content("错误信息,请您检查");
     }
     _bannerService.UpdateEntity(info);
     return Content("ok");
 }
        public ActionResult Delete(Banner info)
        {
            var pCategory = _bannerService.LoadEntities(m => m.ID == info.ID).FirstOrDefault();
            if (pCategory == null)
            {
                return Content("错误信息,请您检查");
            }
            _bannerService.DeleteEntityAndImgFile(pCategory);

            return Content("ok");
        }