public async Task UpdateActivityTemplate(UpdateActivityTemplateInput input)
        {
            var currentUserId    = GetCurrentUserId();
            var activityTemplate = await _activityTemplateManager.GetAsync(input.Id);

            var location = input.LocationId.HasValue ? await _locationManager.GetLocationAsync(input.LocationId.Value) : null;

            var tags = await _tagManager.GetTags(input.TagTexts);

            _activityTemplateManager.EditActivityTemplate(
                activityTemplate,
                input.Name,
                input.ReferenceTimeSlots.Select(timeSlot => ActivityTemplateReferenceTimeSlot.Create(timeSlot.StartTime, timeSlot.EndTime)).ToList(),
                location,
                tags,
                currentUserId
                );
            _activityTemplateManager.EditDescriptions(activityTemplate, input.DescriptionIds, currentUserId);
        }
        public async Task <EntityDto <Guid> > CreateActivityTemplate(CreateActivityTemplateInput input)
        {
            var currentUser = await GetCurrentUserAsync();

            var location = input.LocationId.HasValue ? await _locationManager.GetLocationAsync(input.LocationId.Value) : null;

            var tags = await _tagManager.GetTags(input.TagTexts);

            var activityTemplate = await _activityTemplateManager.CreateAsync(ActivityTemplate.Create(
                                                                                  input.Name,
                                                                                  location,
                                                                                  input.ReferenceTimeSlots.Select(timeSlot => ActivityTemplateReferenceTimeSlot.Create(timeSlot.StartTime, timeSlot.EndTime)).ToList(),
                                                                                  tags,
                                                                                  currentUser,
                                                                                  input.ReferenceId
                                                                                  ));

            return(new EntityDto <Guid>(activityTemplate.Id));
        }