Пример #1
0
 public Data.PARTY JsonToDb(JsonEntitie.Party JsonParty)
 {
     return(new Data.PARTY
     {
         NAME_LONG = JsonParty.longname,
         NAME_SHORT = JsonParty.name
     });
 }
Пример #2
0
 private bool doesPartyExist(JsonEntities.Party JsonParty)
 {
     return(parties.Any(
                d => d.NameShort == JsonParty.name ||
                d.NameLong == JsonParty.longname));
 }