// GET: IndexModelsCuptor public async Task <IActionResult> Index() { List <IndexModel> listaDeAfisat = await _context.IndexModels.ToListAsync(); return(View(listaDeAfisat.Where(model => model.PlcName == "PlcCuptor" && Auxiliar.IsCurrentMonth(Auxiliar.ReturnareDataFromString(model.Data))))); }