public AccessionViewModel GetNextAccession(int crossId) { CrossPlan crossPlan = u_repo.GetCrossPlan(crossId); int genusId = crossPlan.GenusId; Origin origin = u_repo.GetDefaultOrigin(); AccessionViewModel accession = a_repo.GetNextAccession(genusId, origin.Id); accession.CopyCrossToAccession(crossPlan); accession.IsBase = true; accession.IsRoot = true; accession.Id = 0; return(accession); }