public ActionResult AddNews(News info)
 {
     if (info == null)
     {
         return Content("错误信息,请您检查");
     }
     info.AddTime = DateTime.Now;
     _newsService.AddEntity(info);
     return Content("ok");
 }
        public ActionResult DeleteNews(News info)
        {
            var newsInfo = _newsService.LoadEntities(m => m.ID == info.ID).FirstOrDefault();
            if (newsInfo == null)
            {
                return Content("错误信息,请您检查");
            }
            _newsService.DeleteEntity(newsInfo);
            return Content("ok");

        }
        public ActionResult UpdateNewsInfo(News info)
        {
            var newsInfo = _newsService.LoadEntities(m => m.ID == info.ID).FirstOrDefault();
            if (newsInfo == null)
            {
                return Content("错误信息,请您检查");
            }
            info.AddTime = DateTime.Now;

            _newsService.UpdateEntity(info);
            return Content("ok");
        }