Ejemplo n.º 1
0
        public IActionResult GetTrainerActivities()
        {
            var trainerId        = User.Claims.FirstOrDefault(c => c.Type == "sub").Value;
            var activityEntities = _sportRepository.GetTrainerActivities(trainerId);
            var results          = Mapper.Map <IEnumerable <Model.Activity> >(activityEntities);

            return(Ok(results));
        }