public IActionResult Index() { var sportList = _manager.GetAll(); var modelList = ServicesAutoMapperConfig.Mapped.Map <List <Models.Sport> >(sportList); return(View(modelList)); }
public async Task <ActionResult <IEnumerable <Sport> > > GetSports() { var sports = await _manager.GetAll(); return(Ok(sports)); }