public static Abilities Map(Library.Abilities r) => new Abilities { AbilityId = r.AbilityID, Name = r.Name, Description = r.Description, NumDice = r.NumDice, NumSides = r.NumSides, Attack = r.Attack };
public void UpdateAbility(Library.Abilities ability) { _db.Entry(_db.Abilities.Find(ability.AbilityID)).CurrentValues.SetValues(Mapper.Map(ability)); }
public void CreateAbility(Library.Abilities ability) { _db.Add(Mapper.Map(ability)); }