Пример #1
0
 public List <SampleCustomer> GetAllCustomers()
 {
     try { return(CManager.GetAllCustomers().Select(temp => new SampleCustomer {
             ID = "https://localhost:44316/api/Customers/" + temp.ID.ToString(), Name = temp.Name, Adress = temp.Adress, OrderIds = temp.orderList.Select(s => "https://localhost:44316/api/Customers/Orders/" + s.ID.ToString()).ToList()
         }).ToList()); }
     catch
     {
         Response.StatusCode = 400;
         return(null);
     }
 }