public ApartmentsController(IApartmentRepo repo, IMapper mapper, IHouseRepo houseRepo) { _repo = repo; _mapper = mapper; _houseRepo = houseRepo; }
public ResidentController(IMapper mapper, IResidentRepo repo, IApartmentRepo apartmentRepo) { _mapper = mapper; _repo = repo; _apartmentRepo = apartmentRepo; }
// temporary solution since the below constructor doesn't work public ApartmentController() { AppDataContext Context = new AppDataContext(); _aptRepo = new ApartmentRepo(Context); }