public static ExportName Create(ITaxonName taxonName, ITaxon taxon) { var model = new ExportName(); model.IsChecked = false; model.Name = taxonName.Name; model.Author = taxonName.Author; model.NameTypeId = taxonName.Category.Id; model.NameType = taxonName.Category.Name; model.NameUseId = taxonName.Status.Id; model.NameUse = taxonName.Status.Name; model.IsRecommended = taxonName.IsRecommended; model.NameTaxonCategory = taxon.Category.Name; model.TaxonId = taxonName.Taxon.Id; model.RecommendedScientificName = taxon.ScientificName; model.RecommendedAuthor = taxon.Author; model.RecommendedCommonName = taxon.GetCommonNameOrDefault(""); model.TaxonCategory = taxon.Category.Name; model.TaxonCategoryId = taxon.Category.Id; return(model); }