public ActionResult <IEnumerable <Imovel> > Get() { return(Ok(new { status = "200", msg = "OK", obj = repository.GetAll() })); }
public IActionResult GetAll() { return(Ok(repo.GetAll())); }
public IActionResult View(int id) { ViewBag.Imoveis = imovelRepository.GetAll(); return(View(contaLuzRepository.GetByID(id))); }
public IActionResult Index() { ViewBag.imovel = imovelRepository.GetAll(); return(View(new ContaLuzViewModel(ContaRepository))); }
public IActionResult Index() { return(View(imovelRepository.GetAll())); }
public IActionResult Index() { var listImoveis = _repository.GetAll(); return(View(listImoveis)); }