public ActionResult Details(int id = 0) { CatalogEntry catalogEntry = _catalogService.TryGet(id); CatalogEntryModel catalogEntryModel = catalogEntry.ToViewModel(); if (catalogEntry == null) { return(HttpNotFound()); } return(View(catalogEntryModel)); }
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)); }