예제 #1
0
        public ActionResult FeatureAssignment(FeatureAssignmentModel fam, String submit, String userSelection, String roleSelection, String featureSelection)
        {
            AuthenticationsAndAuthorizationsOperations aNaOps = new AuthenticationsAndAuthorizationsOperations();

            switch (submit)
            {
            case "Create": aNaOps.InsertFeatureAccessProfile(featureSelection, userSelection, roleSelection); break;

            case "Delete": aNaOps.DeleteFeatureAccessProfile(featureSelection, userSelection, roleSelection); break;

            default: break;
            }
            return(RedirectToAction("FeatureAssignment"));
        }