Пример #1
0
        public async Task EditAsync(ActivityCallModel model)
        {
            var call = await _repository.GetAsyncCall(model.Id);

            ActivitiesFactory.CreateCall(model, call, _userId);
            _repository.EditCall(call);
            await _unitOfWork.SaveChangesAsync();
        }
Пример #2
0
        //For Call
        public async Task AddAsyncCall(ActivityCallModel model)
        {
            await _repository.AddCallAsync(ActivitiesFactory.CreateCall(model, _userId));

            await _unitOfWork.SaveChangesAsync();
        }