Esempio n. 1
0
        public ActionResult ProposalRegistration(ArccView arccView)
        {
            AARCViewMethods arccViewMethods = new AARCViewMethods();

            arccViewMethods.addScore(arccView);
            // return View("Login", arccView);
            return(RedirectToAction("Login"));
        }
Esempio n. 2
0
        public ActionResult Registration(ArccView arccView)
        {
            AARCViewMethods arccViewMethods = new AARCViewMethods();

            arccViewMethods.insertSecurityUser(arccView);
            // arccViewMethods.insertScore(arccView);
            return(RedirectToAction("Login"));
        }
Esempio n. 3
0
        public ActionResult ScoreProposal(ArccView arccView)
        {
            AARCViewMethods userMethods = new AARCViewMethods();

            // userMethods.setProposalName(arccView);
            // TryUpdateModel(arccView);
            // userMethods.commit(arccView);
            userMethods.insertScore(arccView);
            //return View("Login", arccView);
            return(RedirectToAction("Login"));
        }
Esempio n. 4
0
        public ActionResult Login(ArccView arccView)
        {
            AARCViewMethods aarcViewMethods = new AARCViewMethods();

            bool login = aarcViewMethods.checkLogin(arccView);

            if (login == true)
            {
                //  return View("ScoreProposal", arccView);
                view1 = arccView.user.Email;

                return(RedirectToAction("ScoreProposal"));
                // return ScoreProposal();
                //  return View("ScoreProposal", arccView);
            }
            else
            {
                return(View("Login", arccView));
            }
        }