public UnitOfWork(HospitalDbContext context) { _context = context; Patient = new PatientRepository(context); Gender = new GenderRepository(context); doctorRepository = new DoctorRepository(context); specializationRepository = new SpecializationRepository(context); appoinmentRepository = new AppoinmentRepository(context); }
public AdoptionController( IConfiguration configuration, IAdminRepository adminRepository, IBreedsRepository breedRepository, IGendersRepository gendersRepository, IAppoinmentRepository appoinmentRepository, UserManager <ApplicationUser> userManager, IPersonRepository personRepository) { Configuration = configuration; this.adminRepository = adminRepository; this.breedRepository = breedRepository; this.gendersRepository = gendersRepository; this.appoinmentRepository = appoinmentRepository; _userManager = userManager; this.personRepository = personRepository; }
public AppoinmentBusiness(IAppoinmentRepository appoinment, IUnitOfWork unitOfWork) { _appoinment = appoinment; _unitOfWork = unitOfWork; }