コード例 #1
0
        public ActionResult Details(int id = 0)
        {
            CatalogEntry      catalogEntry      = _catalogService.TryGet(id);
            CatalogEntryModel catalogEntryModel = catalogEntry.ToViewModel();

            if (catalogEntry == null)
            {
                return(HttpNotFound());
            }
            return(View(catalogEntryModel));
        }
コード例 #2
0
        public ActionResult Edit(int id = 0)
        {
            CatalogEntry catalogEntry = _catalogService.TryGet(id);

            if (catalogEntry == null)
            {
                return(HttpNotFound());
            }
            CatalogEntryModel catalogEntryModel = catalogEntry.ToViewModel();

            catalogEntryModel.LicensingBases = _licenseTypeService.GetLicensingBases();
            return(View(catalogEntryModel));
        }