public ActionResult <ContaLuz> Get(int id)
 {
     return(Ok(new
     {
         status = "200",
         msg = "OK",
         obj = repository.GetByID(id)
     }));
 }
Esempio n. 2
0
 public IActionResult View(int id)
 {
     ViewBag.Imoveis = imovelRepository.GetAll();
     return(View(contaLuzRepository.GetByID(id)));
 }