示例#1
0
        public async Task <IActionResult> Index(BeneficiarioListInputModel model)
        {
            ViewData["Title"] = "Lista Beneficiari".ToUpper();
            ListViewModel <BeneficiarioViewModel> viewModel = new();

            viewModel = await service.GetBeneficiariAsync(model);

            BeneficiarioListViewModel view = new BeneficiarioListViewModel {
                Beneficiari = viewModel,
                Input       = model
            };

            return(View(view));
        }
 public Task <ListViewModel <BeneficiarioViewModel> > GetBeneficiariAsync(BeneficiarioListInputModel model)
 {
     return(beneficiarioService.GetBeneficiariAsync(model));
 }