public long SaveOrder(S_Order entity) { if (entity.ID == 0) { #region 维护新增数据 #endregion } else { #region 维护修改数据 #endregion } var r = entity.Save(); return r; }
public long DeleteOrder(S_Order entity) { return entity.Delete(); }