public void Update(ConfigDto config) { var entity = _configRepository.GetById(config.ConfigID); entity = config.ToEntity(entity); _configRepository.Update(entity); }
public void Create(ConfigDto config) { var entity = config.ToEntity(); _configRepository.Insert(entity); }