public async Task <IActionResult> Index(Guid julgamentoFatosId, Guid turmaId) { ViewBag.JulgamentoId = julgamentoFatosId; ViewBag.TurmaId = turmaId; var a = await _fatoRepository.GetAll().Where(c => c.JulgamentoFatosId == julgamentoFatosId).ToListAsync(); return(View(a)); }
public async Task <ActionResult> AlterarStatusJF(Guid julgamentoFatosId) { ViewBag.JulgamentoFatosId = julgamentoFatosId; ViewBag.JulgamentoFatos = _julgamentoFatosRepository.GetById(julgamentoFatosId); return(View(_fatoRepository.GetAll().Include(c => c.Turma).Where(c => c.JulgamentoFatosId == julgamentoFatosId))); }