Example #1
0
        public void Put(string id, [FromBody] Model.Trait value)
        {
            var db = LiteDBClient.Database;

            value._id = id;
            db.GetCollection <Model.Trait>(LiteDBClient.Traits).Upsert(value);
        }
Example #2
0
        public void Post([FromBody] Model.Trait value)
        {
            var db = LiteDBClient.Database;

            db.GetCollection <Model.Trait>(LiteDBClient.Traits).Upsert(value);
        }