Exemplo n.º 1
0
        public IActionResult GetActivities()
        {
            var activityEntities = _sportRepository.GetActivities();
            var results          = Mapper.Map <IEnumerable <Model.Activity> >(activityEntities);

            return(Ok(results));
        }