public void Put(string id, [FromBody] Model.SavingThrow value) { var db = LiteDBClient.Database; value._id = id; db.GetCollection <Model.SavingThrow>(LiteDBClient.SavingThrows).Upsert(value); }
public static List <int> GetSavingThrow(Model.SavingThrow save) { if (save == Model.SavingThrow.Good) { return(GoodSave); } if (save == Model.SavingThrow.Bad) { return(BadSave); } throw new Exception("Saving Throw not found"); }
public void Post([FromBody] Model.SavingThrow value) { var db = LiteDBClient.Database; db.GetCollection <Model.SavingThrow>(LiteDBClient.SavingThrows).Upsert(value); }