public ContaLuzViewModel(IContaLuzRepository contaLuzRepository)
 {
     this.listaContasLuz = contaLuzRepository.Get();
     this.menorConsumo   = contaLuzRepository.GetMenorConsumo();
     this.maiorConsumo   = contaLuzRepository.GetMaiorConsumo();
 }
Example #2
0
 public IActionResult Index()
 {
     ViewBag.menorConsumo = contaLuzRepository.GetMenorConsumo();
     ViewBag.maiorConsumo = contaLuzRepository.GetMaiorConsumo();
     return(View(contaLuzRepository.GetAll()));
 }