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)); }
public HttpResponseMessage GetAccountingOptionsbyKey(string orderDetailKey) { List <AccountingBO> dorder = obj.GetAccountingOptionsbyKey(orderDetailKey); return(Request.CreateResponse(HttpStatusCode.OK, dorder, Configuration.Formatters.JsonFormatter)); }