public async Task <IEnumerable <Order> > GetDiscountAsync() { BuyService b = new BuyService(10); IEnumerable <Order> g = await GetAllAsync(); return(b.GetDiscount(g, 0)); }
public IEnumerable <Order> GetDiscount() { BuyService b = new BuyService(10); IEnumerable <Order> g = GetAll(); return(b.GetDiscount(g, 0)); }