public Producator Post(ProducatorDTO value)
        {
            Producator model = new Producator()
            {
                NumeProducator = value.NumeProducator,
                TaraOrigine    = value.TaraOrigine
            };

            return(IProducatorRepository.Create(model));
        }
        public Producator Put(int id, ProducatorDTO value)
        {
            Producator model = IProducatorRepository.Get(id);

            if (value.NumeProducator != null)
            {
                model.NumeProducator = value.NumeProducator;
            }

            if (value.TaraOrigine != null)
            {
                model.TaraOrigine = value.TaraOrigine;
            }

            return(IProducatorRepository.Update(model));
        }