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