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