public ContaLuzViewModel(IContaLuzRepository contaLuzRepository)
 {
     this.listaContasLuz = contaLuzRepository.Get();
     this.menorConsumo   = contaLuzRepository.GetMenorConsumo();
     this.maiorConsumo   = contaLuzRepository.GetMaiorConsumo();
 }
 public IActionResult View(int id)
 {
     return(View(contaLuzRepository.Get(id)));
 }