예제 #1
0
        public async Task EditAsync(LeadStatusEditModel model)
        {
            var item = await _repository.GetAsync(model.Id);

            LeadStatusFactory.Create(model, item, _userId);
            _repository.Edit(item);
            await _unitOfWork.SaveChangesAsync();
        }
예제 #2
0
        public async Task AddAsync(LeadStatusAddModel model)
        {
            await _repository.AddAsync(LeadStatusFactory.Create(model, _userId));

            await _unitOfWork.SaveChangesAsync();
        }