Пример #1
0
 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
 };
Пример #2
0
 public void UpdateFeat(Library.Feats feat)
 {
     _db.Entry(_db.Feats.Find(feat.FeatID)).CurrentValues.SetValues(Mapper.Map(feat));
 }
Пример #3
0
 public void CreateFeat(Library.Feats feat)
 {
     _db.Add(Mapper.Map(feat));
 }