public ActionResult Edit(int websiteID, int permissionID, string userName, int abilityID) { ViewBag.PermissionOptions = DropDownGenerator.GetPermissionDropDown(abilityID - 1); PermissionModel permission = new PermissionModel() { WebsiteID = websiteID, PermissionID = permissionID, UserName = userName, AbilityID = abilityID }; return(View(permission)); }
public ActionResult Create(int websiteID) { ViewBag.PermissionOptions = DropDownGenerator.GetPermissionDropDown(0); PermissionModel permission = new PermissionModel() { WebsiteID = websiteID }; return(View(permission)); }