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

            return(View(listImoveis));
        }