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