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)); }
public IActionResult Realtors() { var realtors = realtorRepo.GetRealtors(); return(View(realtors)); }