Пример #1
0
        public HomeController(IConfiguration iconfiguration)
        {
            string con = iconfiguration.GetSection("ConnectionStrings").GetSection("connectionstring").Value;

            iappointmentContext = new AppointmentMsSqlContext(con);
            appointmentrepo     = new AppointmentRepo(iappointmentContext);

            iaccountcontext = new AccountMsSqlContext(con);
            accountrepo     = new AccountRepo(iaccountcontext);

            accVeri = new AccountVerification();
        }
Пример #2
0
        public APIInteraction(IConfiguration iconfiguration)
        {
            config = iconfiguration;
            string con = config.GetSection("ConnectionStrings").GetSection("connectionstring").Value;

            iappointmentcontext = new AppointmentMsSqlContext(con);
            appointmentrepo     = new AppointmentRepo(iappointmentcontext);

            inotificationcontext = new NotificationMsSqlContext(con);
            notificationrepo     = new NotificationRepo(inotificationcontext);

            iaccountcontext = new AccountMsSqlContext(con);
            accountrepo     = new AccountRepo(iaccountcontext);

            notificationController = new NotificationController(config);
        }
Пример #3
0
 public AppointmentLogic(IAppointmentContext appointment)
 {
     _appointment = appointment;
 }
 public AppointmentRepository(IAppointmentContext context)
 {
     this.context = context;
 }
 public AppointmentRepository()
 {
     this.context = new AppointmentContextSQL();
 }