Ejemplo n.º 1
0
        public IActionResult CreateListing()
        {
            CreateListingViewModel model = new CreateListingViewModel
            {
                Realtors = realtorRepo.GetRealtors()
            };

            return(View(model));
        }
        public async Task <ActionResult <Realtors> > GetRealtors()
        {
            var realtorEntities = await _realtorRepository.GetRealtors();

            var results = _mapper.Map <IEnumerable <ReatorWithoutAssetsDto> >(realtorEntities);

            return(Ok(results));
        }
Ejemplo n.º 3
0
        public IActionResult Realtors()
        {
            var realtors = realtorRepo.GetRealtors();

            return(View(realtors));
        }