public async Task <IActionResult> Details(string uriGara) { Activity act = await _activityRepo.GetRaceDetailsAsync(uriGara); RaceViewModel rvm = new RaceViewModel() { Place = act.Place, CreationDate = act.CreationDate, Name = act.Name, UriGara = act.UriGara, IdOrganizer = act.IdOrganizer }; return(View(rvm)); }
public async Task <Activity> GetRaceDetails([FromRoute] string uriGara) { return(await _activityRepo.GetRaceDetailsAsync(uriGara)); }