public async Task <ActivityModel> AddAsync(ActivityModel activity)
        {
            var entity = _mapper.Map <Activity>(activity);

            var returnedEntity = await _activityRepository.AddAsync(entity);

            activity.Id = returnedEntity.Id;

            foreach (var tag in activity.Tags)
            {
                var activityTag = new ActivityTags()
                {
                    TagId      = tag.TagModel.Id,
                    ActivityId = activity.Id,
                    AppliedOn  = tag.AppliedOn
                };

                await _activityTagRepository.AddAsync(activityTag);
            }

            return(activity);
        }
 private async Task SaveAsync()
 {
     await _activityRepository.AddAsync(this.GetActivityEntity());
 }