//overload 1 - take type not long? public static List<BookingExtra> GetBookingExtrasOfType(BookingExtraType aBookingExtraType) { List<BookingExtra> theList = new List<BookingExtra>(); PortugalVillasContext _db = new PortugalVillasContext(); return theList = _db.BookingExtras.Where(x => x.BookingExtraTypeID == aBookingExtraType.BookingExtraTypeID) .Where(x => x.TopLevelItem == true).ToList(); }
//overload 1 - take type not long? public static List <BookingExtra> GetBookingExtrasOfType(BookingExtraType aBookingExtraType) { List <BookingExtra> theList = new List <BookingExtra>(); PortugalVillasContext _db = new PortugalVillasContext(); return(theList = _db.BookingExtras.Where(x => x.BookingExtraTypeID == aBookingExtraType.BookingExtraTypeID) .Where(x => x.TopLevelItem == true).ToList()); }