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