public IEnumerable <Clothes> GetCloth(int clothId) { return(new List <Clothes> { GetDataFromDB.LoadClothesJsonData().FirstOrDefault(id => id.id == clothId) }); }
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 }); }
public IEnumerable <Clothes> GetAll() { return(GetDataFromDB.LoadClothesJsonData()); }