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