public ParkInfoMenu(int chosen, ICampgroundDAO campp, IParkDAO parkDAO, ISiteDAO siteDAO, IReservationDAL reservationDAL) : base("Park Information") { this.chosen = chosen; campDAO = campp; ParkDAO = parkDAO; SiteDAO = siteDAO; ReservationDAL = reservationDAL; }
//private Campground Camp; //private Park Park; /// <summary> /// Constructor adds items to the top-level menu /// </summary> public ViewParksMenu(IParkDAO parkDao, ICampgroundDAO campDAO, ISiteDAO siteDAO, IReservationDAL reservationDAL) : base("ViewParksMenu") { ParkDAO = parkDao; CampDAO = campDAO; SiteDAO = siteDAO; ReservationDAL = reservationDAL; }
public int Add(IReservationDAL item) { var data = _context.Add(item); _context.SaveChanges(); _context.Entry(item).State = EntityState.Detached; return(data.Entity.Id); }
public CampgroundMenu(int chosen, ICampgroundDAO campDAO, IParkDAO parkDAO, ISiteDAO siteDAO, IReservationDAL resDal) : base("Campground") { this.chosen = chosen; CampDAO = campDAO; ParkDAO = parkDAO; SiteDAO = siteDAO; ResDal = resDal; }
/// <summary> /// Constructor adds items to the top-level menu. YOu will likely have parameters for one or more DAO's here... /// </summary> public MainMenu(IParkDAO parkDAO, ICampgroundDAO campDAO, ISiteDAO siteDAO, IReservationDAL resDal) : base("Main Menu") { //Camp = camp; //Park = park; this.parkDAO = parkDAO; this.campDAO = campDAO; this.siteDAO = siteDAO; this.resDal = resDal; }
public ReservationMenu(int campchoice, int chosen, IParkDAO parkDAO, ICampgroundDAO campDAO, ISiteDAO siteDAO, IReservationDAL resDal) : base("Reservations Menu") { this.campchoice = campchoice; this.chosen = chosen; ParkDAO = parkDAO; CampDAO = campDAO; SiteDAO = siteDAO; ResDal = resDal; }
public void Update(IReservationDAL item) { _context.Update(item); _context.SaveChanges(); _context.Entry(item).State = EntityState.Detached; }
public ReservationService(IReservationDAL reservationDAL) { _reservationDAL = reservationDAL; }