Esempio n. 1
0
        // GET: Administrateur/AssetTypeSupportedMetaDatas/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var assetTypeSupportedMetaData = AssetTypeSupportedMetaDatasService.Get(id);

            if (assetTypeSupportedMetaData == null)
            {
                return(HttpNotFound());
            }
            return(View(assetTypeSupportedMetaData));
        }
Esempio n. 2
0
        // GET: Administrateur/AssetTypeSupportedMetaDatas/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var assetTypeSupportedMetaData = AssetTypeSupportedMetaDatasService.Get(id);

            if (assetTypeSupportedMetaData == null)
            {
                return(HttpNotFound());
            }
            ViewBag.AssetTypeID = new SelectList(AssetTypeService.GetAssetTypes(), "AssetTypeID", "TypeLabel", assetTypeSupportedMetaData.AssetTypeID);
            ViewBag.MetaDataID  = new SelectList(MetaDataService.GetMetaDatas(), "MetaDataID", "Title", assetTypeSupportedMetaData.MetaDataID);
            return(View(assetTypeSupportedMetaData));
        }
Esempio n. 3
0
        // GET: Administrateur/AssetTypeSupportedMetaDatas
        public ActionResult Index()
        {
            var assetTypeSupportedMetaDatas = AssetTypeSupportedMetaDatasService.Get();

            return(View(assetTypeSupportedMetaDatas.ToList()));
        }