public async Task UpdateActivity(UpdateActivityInput input) { var currentUserId = GetCurrentUserId(); var activity = await _activityManager.GetAsync(input.Id); var location = input.LocationId.HasValue ? await _locationManager.GetLocationAsync(input.LocationId.Value) : null; var tags = await _tagManager.GetTags(input.TagTexts); _activityManager.EditActivity(activity, input.Name, input.StartTime, input.EndTime, location, tags, currentUserId); _activityManager.EditDescriptions(activity, input.DescriptionIds, currentUserId); }