Exemple #1
0
        // GET: Home
        public ActionResult Index()
        {
            myFormViewModel mfvm = new myFormViewModel();
            indexshake      ish  = new indexshake();
            myFormManager   mfm  = new myFormManager();

            ish.myformmanager   = mfm;
            ish.myfromviewmodel = mfvm;
            if (Session["login"] != null)
            {
                return(View(ish));
            }
            return(RedirectToAction("Login"));
        }
Exemple #2
0
        public ActionResult Select(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            myFormManager mfm = new myFormManager();
            myform        mf  = mfm.getMyFormById(id.Value);

            if (mf == null)
            {
                return(HttpNotFound());
            }
            return(View(mf));
        }
Exemple #3
0
        public ActionResult Index(indexshake model)
        {
            myFormViewModel myf = model.myfromviewmodel;

            myf.createdBy = Int32.Parse(Session["adminId"].ToString());
            formManager fm = new formManager();

            fm.RegisterMyForm(myf);
            myFormViewModel mfvm = new myFormViewModel();
            indexshake      ish  = new indexshake();
            myFormManager   mfm  = new myFormManager();

            ish.myformmanager   = mfm;
            ish.myfromviewmodel = mfvm;
            return(View(ish));
        }