public ActionResult Index()
        {
            var data = Mapper.Map <IEnumerable <Campeonato>, IEnumerable <CampeonatoVM> >(_campeonatoService.GetAll());

            return(View(data));
        }
Example #2
0
 public async Task <PagedList <CampeonatoEntity> > GetAll(ParametersPage parametersPage)
 {
     return(await _campeonatoService.GetAll(parametersPage));
 }