Ejemplo n.º 1
0
        public Tuple <long, LicenseViewModel> GetLicenseWithAssets(long licenseID)
        {
            License      license = FindById(licenseID);
            List <Asset> assets  = repositoryAssetLicense.AssetsPerLincense(licenseID);

            LicenseViewModel licenseViewModel = new LicenseViewModel();

            licenseViewModel.license         = license;
            licenseViewModel.FileDescription = license.ColFileName;
            licenseViewModel.assets          = assets;

            return(new Tuple <long, LicenseViewModel>(licenseID, licenseViewModel));
        }