public ActionResult Create(AppResource appresource)
        {
            if (ModelState.IsValid)
            {
                db.AppResources.Add(appresource);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.DefaultAccess = new SelectList(AccessTypeList, "deny");
            return View(appresource);
        }
        public ActionResult Edit(AppResource appresource)
        {
            if (ModelState.IsValid)
            {
                db.Entry(appresource).State = EntityState.Modified;
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.DefaultAccess = new SelectList(AccessTypeList, appresource.DefaultAccess);
            return View(appresource);
        }