Beispiel #1
0
 public ActionResult <IEnumerable <Imovel> > Get()
 {
     return(Ok(new
     {
         status = "200",
         msg = "OK",
         obj = Repositories.GetAll()
     }));
 }
Beispiel #2
0
 public IActionResult Index()
 {
     ViewBag.imovel = imovelRepositories.GetAll();
     return(View(new ContaLuzViewModel(contaLuzRepositories)));
 }
Beispiel #3
0
        public IActionResult Index()
        {
            var listImoveis = _Repositories.GetAll();

            return(View(listImoveis));
        }