public HttpResponseMessage GetCycleNo() { return(this.ExecuteTryCatch(() => { var po = new OrderCycleBL(GetCurUSerLocalization()); return po.GetOrderCycleConfig(); })); }
public HttpResponseMessage UpdateCycles([FromBody] OrderCycleTM pcycle) { return(this.ExecuteTryCatch(() => { var po = new OrderCycleBL(GetCurUSerLocalization()); pcycle.StartDate = pcycle.StartDate.ToLocalTime(); pcycle.EndDate = pcycle.EndDate.ToLocalTime(); if (!po.UpdateOrderCycle <OrderCycleTM>(pcycle)) { throw new Exception("保存错误"); } return true; })); }