예제 #1
0
        //initializes these variables
        public EnterInfoModel(TimeSlotListContext con, AppointmentListContext appt)
        {
            Timecontext = con;

            Apptcontext = appt;
        }
예제 #2
0
 //when built it initializes these variables and gets the data from the DB
 public HomeController(ILogger <HomeController> logger, AppointmentListContext Acon, TimeSlotListContext Tcon)
 {
     _logger            = logger;
     AppointmentContext = Acon;
     TimeContext        = Tcon;
 }