示例#1
0
 public IEnumerable <Clothes> GetCloth(int clothId)
 {
     return(new List <Clothes>
     {
         GetDataFromDB.LoadClothesJsonData().FirstOrDefault(id => id.id == clothId)
     });
 }
示例#2
0
        public IEnumerable <Manufacturer> GetManfacturer(int clothId)
        {
            var cloth = GetDataFromDB.LoadClothesJsonData().FirstOrDefault(id => id.id == clothId);

            var manfacturer = GetDataFromDB.LoadManfacturerJsonData().FirstOrDefault(id => id.ID == cloth?.Manfacturer?.ID);

            return(new List <Manufacturer>
            {
                manfacturer
            });
        }
示例#3
0
 public IEnumerable <Clothes> GetAll()
 {
     return(GetDataFromDB.LoadClothesJsonData());
 }