public virtual BONuGetPackage MapEFToBO( NuGetPackage ef) { var bo = new BONuGetPackage(); bo.SetProperties( ef.Id, ef.JSON, ef.PackageId, ef.Version, ef.VersionBuild, ef.VersionMajor, ef.VersionMinor, ef.VersionRevision, ef.VersionSpecial); return(bo); }
public virtual BONuGetPackage MapModelToBO( string id, ApiNuGetPackageRequestModel model ) { BONuGetPackage boNuGetPackage = new BONuGetPackage(); boNuGetPackage.SetProperties( id, model.JSON, model.PackageId, model.Version, model.VersionBuild, model.VersionMajor, model.VersionMinor, model.VersionRevision, model.VersionSpecial); return(boNuGetPackage); }