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