public ActionResult Delete(PCategory info)
 {
     var pCategory = _pCategoryService.LoadEntities(m => m.ID == info.ID).FirstOrDefault();
     if (pCategory == null)
     {
         return Content("错误信息,请您检查");
     }
     _pCategoryService.DeleteEntity(pCategory);
     return Content("ok");
 }
 public ActionResult Add(PCategory info)
 {
     if (info == null)
     {
         return Content("错误信息,请您检查");
     }
     info.Pid = 0;
     _pCategoryService.AddEntity(info);
     return Content("ok");
 }
 public ActionResult Update(PCategory info)
 {
     _pCategoryService.UpdateEntity(info);
     return Content("ok");
 }