public static List <DeviceInfo> GetInfos(int page, int count) { string strPage = $" order by Did desc limit {count} offset {page * count}"; ConfirmInfos = Dal_ConfirmInfo.GetInfos(strPage); return(ConfirmInfos); }
public static int GetMaxId() { List <DeviceInfo> list = Dal_ConfirmInfo.GetInfos(string.Empty); int max = 0; if (list.Count > 0) { max = list.Max(e => e.Did); } return(max); }
public static int GetCount() { return(Dal_ConfirmInfo.GetInfos(string.Empty).Count()); }