public static Search.Models.Synonym AsSearchModel(this Models.Synonym source) => new Search.Models.Synonym { Id = source.SynonymId, Name = source.Name, Rank = source.Rank, Language = source.Language, DateUpdated = source.DateUpdated, Origin = source.Origin?.AsSearchModel() };
public static Synonym AsStore(this Models.Synonym source) => new Synonym { Id = source.SynonymId, Name = source.Name, Rank = source.Rank, Language = source.Language, DateUpdated = source.DateUpdated, TaxonId = source.Taxon?.TaxonId ?? source.TaxonId, OriginId = source.Origin?.OriginId };