Example #1
0
        public ActionResult EditSubcategory([Bind(Include = "dossierId,assetSubcategoryId,assetCategoryId,description,isAsset")]                                                   POCO.assetSubcategory assetSubcategory)
        {
            ListAssetsModel ass = new ListAssetsModel(assetSubcategory.dossierId, assetSubcategory.isAsset);

            assetSubcategory.ListCategories = ass.Categories.Where(c => c.isAsset == assetSubcategory.isAsset).ToList();

            ViewBag.Action = "EditSubcategory";
            return(View("DetailsSubcategory", assetSubcategory));
        }
Example #2
0
        // GET: AssetCategory/Create
        public ActionResult CreateSubcategory(int dossierId, bool isAsset)
        {
            POCO.assetSubcategory model = new POCO.assetSubcategory {
                dossierId = dossierId
            };
            ListAssetsModel ass = new ListAssetsModel(dossierId, true);

            model.ListCategories = ass.Categories.Where(c => c.isAsset == isAsset).ToList();

            ViewBag.Action = "CreateSubcategory";
            return(View("DetailsSubcategory", model));
            //return View();
        }
Example #3
0
        // GET: Asset
        public ActionResult Index(int dossierId)
        {
            ListAssetsModel model = new ListAssetsModel(dossierId, false);

            return(View(model));
        }