Exemple #1
0
        public async Task EditAsyncMeeting(ActivityMeetingModel model)
        {
            var meet = await _repository.GetAsyncMeeting(model.Id);

            ActivitiesFactory.CreateMeeting(model, meet, _userId);
            _repository.EditMeeting(meet);
            await _unitOfWork.SaveChangesAsync();
        }
Exemple #2
0
        //For Meeting
        public async Task AddAsyncMeeting(ActivityMeetingModel model)
        {
            await _repository.AddMeetingAsync(ActivitiesFactory.CreateMeeting(model, _userId));

            await _unitOfWork.SaveChangesAsync();
        }