public async Task <IActionResult> Index(int id)
        {
            PrazosDeUmCasoViewModel vm = await _prazoService.ListaPrazosDeUmCaso(id);

            ViewBag.CasoId = id;
            return(View(vm));
        }
Exemple #2
0
        public async Task <PrazosDeUmCasoViewModel> ListaPrazosDeUmCaso(int casoId)
        {
            PrazosDeUmCasoViewModel vm = new PrazosDeUmCasoViewModel();

            vm.CasoID = casoId;
            vm.Prazos = await _prazoRepositorio.Listar(casoId : casoId);

            return(vm);
        }