public ActionResult Index(int id)
        {
            TB1 entity = new TB1();
            entity.Name = "2";
            entity.ParentID = 2;
            entity.ID = 7;

            HM_CatergoryFacade.Update(entity);
            DataList<TB1> list = HM_CatergoryFacade.GetTestData();

            ViewBag.Message = "欢迎使用 ASP.NET MVC!";
            return View(list);
        }
 public static int Update(TB1 en)
 {
     return CatergoryRepository.Update(en);
 }
 public static int Save(TB1 en)
 {
     return CatergoryRepository.Save(en);
 }
 public static int Update(TB1 en)
 {
     SqlWhere where = new SqlWhere("ID", en.ID);
     return SqlQueryCache.Localhost.Update(en, where);
 }
 public static int Save(TB1 en)
 {
     return SqlQueryCache.Localhost.Insert(en);
 }