Created
August 11, 2017 20:06
-
-
Save Horaddrim/a5e7c3b60c673c02622a2842bbf7a42f to your computer and use it in GitHub Desktop.
:D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const patiosSchema = require('./patiosSchema'); | |
| exports.InserePatios = function(IdPatio,NomPatio,IndExclusao) | |
| { | |
| var newPatio = new Patio(IdPatio,NomPatio,IndExclusao); | |
| patiosSchema.create( | |
| { | |
| IdPatio: newPatio.IdPatio, | |
| NomPatio: newPatio.NomPatio, | |
| IndExclusao: newPatio.IndExclusao | |
| }); | |
| console.log("INSERIU NO MONGO!"); | |
| return newPatio; | |
| } | |
| class Patio | |
| { | |
| constructor(IdPatio,NomPatio,IndExclusao) | |
| { | |
| this.IdPatio = IdPatio; | |
| this.NomPatio = NomPatio; | |
| this.IndExclusao = IndExclusao; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment