public async Task EditAsyncMeeting(ActivityMeetingModel model) { var meet = await _repository.GetAsyncMeeting(model.Id); ActivitiesFactory.CreateMeeting(model, meet, _userId); _repository.EditMeeting(meet); await _unitOfWork.SaveChangesAsync(); }
//For Meeting public async Task AddAsyncMeeting(ActivityMeetingModel model) { await _repository.AddMeetingAsync(ActivitiesFactory.CreateMeeting(model, _userId)); await _unitOfWork.SaveChangesAsync(); }