public void Update(PurposeCate model)
 {
     var target = Find(model.ID);
     db.Attach<PurposeCate>(target);
     target.CateName = model.CateName;
     db.Commit();
 }
 public void Delete(PurposeCate model)
 {
     var target = Find(model.ID);
     db.Remove<PurposeCate>(target);
     db.Commit();
 }
 public void Create(PurposeCate model)
 {
     db.Add<PurposeCate>(model);
     db.Commit();
 }