Пример #1
0
        public IActionResult GetClientActivities()
        {
            var clientId         = User.Claims.FirstOrDefault(c => c.Type == "sub").Value;
            var activityEntities = _sportRepository.GetClientActivities(clientId);
            var results          = Mapper.Map <IEnumerable <Model.Activity> >(activityEntities);

            return(Ok(results));
        }