public async Task EditAsync(LeadStatusEditModel model) { var item = await _repository.GetAsync(model.Id); LeadStatusFactory.Create(model, item, _userId); _repository.Edit(item); await _unitOfWork.SaveChangesAsync(); }
public async Task AddAsync(LeadStatusAddModel model) { await _repository.AddAsync(LeadStatusFactory.Create(model, _userId)); await _unitOfWork.SaveChangesAsync(); }