public void Put(string id, [FromBody] Model.Trait value) { var db = LiteDBClient.Database; value._id = id; db.GetCollection <Model.Trait>(LiteDBClient.Traits).Upsert(value); }
public void Post([FromBody] Model.Trait value) { var db = LiteDBClient.Database; db.GetCollection <Model.Trait>(LiteDBClient.Traits).Upsert(value); }