public async Task EditAsync(ActivityCallModel model) { var call = await _repository.GetAsyncCall(model.Id); ActivitiesFactory.CreateCall(model, call, _userId); _repository.EditCall(call); await _unitOfWork.SaveChangesAsync(); }
//For Call public async Task AddAsyncCall(ActivityCallModel model) { await _repository.AddCallAsync(ActivitiesFactory.CreateCall(model, _userId)); await _unitOfWork.SaveChangesAsync(); }