Esempio n. 1
0
        public void Put(string id, [FromBody] Model.SpellType value)
        {
            var db = LiteDBClient.Database;

            value._id = id;
            db.GetCollection <Model.SpellType>(LiteDBClient.SpellTypes).Upsert(value);
        }
Esempio n. 2
0
        public void Post([FromBody] Model.SpellType value)
        {
            var db = LiteDBClient.Database;

            db.GetCollection <Model.SpellType>(LiteDBClient.SpellTypes).Upsert(value);
        }