Example #1
0
 public async Task RemoveActivityAsync(Data.Shared.Models.Activity activity) => await _activityRepository.RemoveAsync(activity.AsStore());
Example #2
0
        public async Task <Data.Shared.Models.Activity> AddOrUpdateActivityAsync(Data.Shared.Models.Activity activity)
        {
            var activityResult = await _activityRepository.AddOrUpdateAsync(a => a.Id == activity.ActivityId, activity.AsStore());

            return(activityResult.AsModel());
        }