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

            _aptRepo = new ApartmentRepo(Context);
        }