Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
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)); }