using HighWayIot.Repository.domain; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; namespace RFIDSocket { public class LogControl { public static List LogContentSelect(List lists, string content) { return lists.Where(x => x.Content.Contains(content)).ToList(); } public static List LogReadKindSelect(List lists, string readKind) { return lists.Where(x => x.ReadKind == readKind).ToList(); } public static List LogDeviceNoSelect(List lists, int deviceNo) { return lists.Where(x => x.DeviceNo == deviceNo).ToList(); } public static List LogTimeSelect(List lists, DateTime start, DateTime end) { return lists.Where(x => x.LogTime >= start && x.LogTime <= end).ToList(); } } }