Пример #1
0
 public long DeleteOrderItem(S_OrderItem entity)
 {
     return entity.Delete();
 }
Пример #2
0
        public HttpResponseMessage SaveOrderItem(S_OrderItem entity)
        {
            if (entity.ID == 0)
            {
                #region 维护新增数据

                #endregion
            }
            else
            {
                #region 维护修改数据

                #endregion
            }

            var r = entity.Save();
            if (r > 0)
            {
                return this.JsonMessage(entity);
            }
            return this.JsonMessage(new { ID = 0 });
        }