public static List <FUTItemProfit> GetFUTProfitLogs(int from, int take, FUTBuyBidType type) { using (var context = new FUTLogsDatabase()) { return(context.FUTItemProfits.Where(x => x.SellTimestamp != 0 && x.Type == type).OrderByDescending(x => x.SellTimestamp).Skip(from).Take(take).ToList()); } }
public static List <FUTSell> GetFUTSells(int from, int take, FUTBuyBidType type) { using (var context = new FUTLogsDatabase()) { return(context.FUTSells.Where(x => x.Type == type).OrderByDescending(x => x.ID).Skip(from).Take(take).ToList()); } }