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(); }
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); }
public AppointmentLogic(IAppointmentContext appointment) { _appointment = appointment; }
public AppointmentRepository(IAppointmentContext context) { this.context = context; }
public AppointmentRepository() { this.context = new AppointmentContextSQL(); }