public async Task <ActionResult <ActivityDto> > GetActivity(Guid id) { var activity = await _repository.GetActivityAsync(id); if (activity == null) { return(NotFound()); } return(Ok(_mapper.Map <ActivityDto>(activity))); }