public void Insert(PagamentoDocumento info)
        {
            using (var context = new Context())
            {
                info.Veiculo = context.Veiculos.Find(info.Veiculo.Placa);

                context.PagamentoDocumentos.Add(info);
                context.SaveChanges();
            }
        }
        public void Insert(PagamentoDocumento info)
        {
            if (info.DataPagamento.Year > 2000)
            {
                info.DataPagamentoS = info.DataPagamento.ToShortDateString();
            }
            if (info.DataVencimento.Year > 2000)
            {
                info.DataVencimentoS = info.DataVencimento.ToShortDateString();
            }

            dal.Insert(info);
        }