public static Feats Map(Library.Feats r) => new Feats { FeatId = r.FeatID, Name = r.Name, Description = r.Description, Mods = r.Mods, StatTable = r.StatTable, StatType = r.StatType };
public void UpdateFeat(Library.Feats feat) { _db.Entry(_db.Feats.Find(feat.FeatID)).CurrentValues.SetValues(Mapper.Map(feat)); }
public void CreateFeat(Library.Feats feat) { _db.Add(Mapper.Map(feat)); }