//private IDataProtector _protector;IDataProtectionProvider provider ,

        public AppointmentController(IPatientAppointmentReferralRepository PARrepo, IAccountRepository accountRepo, IAddressRepository AddressRepo, IContactDetailsRepository CDRepo, IAppointmentRepository appointmentRepo, ITimesRepository timesRepo)
        {
            PARrepository         = PARrepo;
            AccountRepository     = accountRepo;
            AddressRepository     = AddressRepo;
            CDRepository          = CDRepo;
            AppointmentRepository = appointmentRepo;
            timesRepository       = timesRepo;
        }
        private IDataProtectionService protect; /*IDataProtectionProvider provider*/

        public AccountController(IContactDetailsRepository CDrepo, IAddressRepository repo, IAccountRepository Repository, IRoleRepository roleRepo)
        {
            CDRepository      = CDrepo;
            addressRepository = repo;
            accountRepository = Repository;
            roleRepository    = roleRepo;
            //protect = protectionService;

            //_protector = provider.CreateProtector("MedicNoteBook");//)"c90bab3c-8f97 -461b-af78-16fcfc574edb");//GetType().FullName);
            //_protector = provider.CreateProtector(GetType().FullName);
            //_protector = provider.CreateProtector("key-d3431142-2392-4951-a994-125bf74c8d2b");
        }
 public PatientController(/*IDataProtectionProvider providerIDataProtectionService protectionServices,*/ IAccountRepository accountrepo, IContactDetailsRepository contactDetailsRepo, IAddressRepository addressRepo, IPatientAppointmentReferralRepository IPAR, IAppointmentRepository appointmentRepo, ITimesRepository timesRepo)
 {
     appointmentRepository    = appointmentRepo;
     accountRepository        = accountrepo;
     contactDetailsRepository = contactDetailsRepo;
     addressRepository        = addressRepo;
     parRepository            = IPAR;
     timesRepository          = timesRepo;
     //protectionService = protectionServices;
     //_protector = provider.CreateProtector("c90bab3c-8f97 -461b-af78-16fcfc574edb");//GetType().FullName);
     //_protector = provider.CreateProtector(GetType().FullName);
     //_protector = provider.CreateProtector("key-d3431142-2392-4951-a994-125bf74c8d2b");
 }
Beispiel #4
0
 public ContactDetailsService(IContactDetailsRepository _contactDetailsRepository)
 {
     this._contactDetailsRepository = _contactDetailsRepository;
 }
Beispiel #5
0
 public ContactDetailsManager(IContactDetailsRepository contactDetailsRepository)
 {
     _contactDetailsRepository = contactDetailsRepository;
     contactDetailsMapping     = new ContactDetailsMapping();
 }