public static List <CurrentDayPickup> ListPickupsForThisCustomer(string custID) { return((CurrentDayPickup.All() .Where(pp => (pp.CDPCustomerID == custID && !pp.CDPDeleted))) .ToList()); }
public static List <CurrentDayPickup> GetPickupsForThisRoute(string tag) { var p = (from pp in CurrentDayPickup.All() where (pp.CDPDefaultRouteID == tag && pp.CDPDeleted == false) select pp); return(p.ToList()); }
public static int GetUndeletedPickupCount() { return(CurrentDayPickup.All().Where(x => x.CDPDeleted == false).Count()); }
public static List <CurrentDayPickup> GetCDPList() { return((from p in CurrentDayPickup.All() select p).ToList()); }