Example #1
0
 public static bool Insert(PagamentosCliente pagemento)
 {
     try
     {
         DB.PagamentosCliente.InsertOne(pagemento);
         return(true);
     }
     catch (Exception e)
     {
         throw new Exception("Erro Inserir PagamentosCliente" + e.ToString());
     }
 }
Example #2
0
        public static bool Insert(string projectoid, string fornecedor, DateTime data, double valor, string Namefile, string Filepath, Tipo_Iva tipoivaidv, Ivas ivaidv, Cambio cambioidv)
        {
            try
            {
                PagamentosCliente cntr = new PagamentosCliente(projectoid, fornecedor, data, valor, Namefile, Filepath, tipoivaidv, ivaidv, cambioidv);
                DB.PagamentosCliente.InsertOne(cntr);

                return(true);
            }
            catch (Exception e)
            {
                throw new Exception("Erro Inserir PagamentosCliente" + e.ToString());
            }
        }