public List <DocumentBO> GetDocNames(string DO) { DocumentDL dl = new DocumentDL(); List <DocumentBO> list = dl.GetSupportingDocuments(DO).ToList(); return(list); // List<string> FileNames = list.Select(y => y.FileName).ToList(); }
public HttpResponseMessage GetbyKey(string OrderKey) { DeliveryOrderBO dorder = new DeliveryOrderBO(); DocumentDL dl = new DocumentDL(); dorder = doObj.GetDeliveryOrder(OrderKey); if (dorder.OrderNo.ToString().Trim() != string.Empty) { List <DocumentBO> list = dl.GetSupportingDocuments(dorder.OrderNo).ToList(); dorder.file = list; } return(Request.CreateResponse(HttpStatusCode.OK, dorder, Configuration.Formatters.JsonFormatter)); }