public HttpResponseMessage Put([FromBody] DeliveryOrderDetailBO schedulerData) { SchedulingDL dl = new SchedulingDL(); var orderdetailCollection = dl.UpdateScheduler(schedulerData); return(Request.CreateResponse(HttpStatusCode.OK, orderdetailCollection, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage GetScheduledContainers() { SchedulingDL dl = new SchedulingDL(); var list = dl.GetScheduledContainers(); return(Request.CreateResponse(HttpStatusCode.OK, list, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage GetOrderDetailsbykey(string orderdetailkey) { SchedulingDL dl = new SchedulingDL(); var list = dl.GetOrderDetailsbykey(orderdetailkey); return(Request.CreateResponse(HttpStatusCode.OK, list, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage PostSchedule(ScheduleOrderBO orderBO) { SchedulingDL dl = new SchedulingDL(); var routeKey = dl.InsertSchedule(orderBO); return(Request.CreateResponse(HttpStatusCode.OK, routeKey, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage GetSchedule(string orderKey) { if (string.IsNullOrEmpty(orderKey)) { return(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } SchedulingDL dl = new SchedulingDL(); var list = dl.GetSchedulingDetails(Guid.Parse(orderKey)); return(Request.CreateResponse(HttpStatusCode.OK, list, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage GetScheduledContainerdata(string orderdetailkey) { SchedulingDL dl = new SchedulingDL(); AccountingDL obj = new AccountingDL(); var data = dl.GetScheduledContainer(orderdetailkey); if (data != null) { List <AccountingBO> dorder = obj.GetAccountingOptionsbyKey(orderdetailkey); data.accountingBO = dorder; } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }