Пример #1
0
        public async Task <ActionResult <List <Activity> > > GetActivity(Guid id)
        {
            var result = await _activitiesService.GetActivityById(id);

            return(Ok(result));
        }
Пример #2
0
 public ActivitiesDto GetActivity(int activityId)
 {
     return(_activitiesService.GetActivityById(activityId));
 }