public ActionResult <IEnumerable <ContaLuz> > Get() { return(Ok(new { status = "200", msg = "OK", obj = repository.GetAll() })); }
public IActionResult Index() { ViewBag.menorConsumo = contaLuzRepository.GetMenorConsumo(); ViewBag.maiorConsumo = contaLuzRepository.GetMaiorConsumo(); return(View(contaLuzRepository.GetAll())); }