DBPOLLDemo.Controllers.QuestionController.Keypad C# (CSharp) Method

Keypad() public method

public Keypad ( int qid ) : System.Web.Mvc.ActionResult
qid int
return System.Web.Mvc.ActionResult
        public ActionResult Keypad(int qid)
        {
            if (Session["uid"] == null || Session["uid"].ToString().Equals(""))
            {
                return RedirectToAction("Index", "Home");
            }
            if ((int)Session["user_type"] < User_Type.POLL_MASTER)
            {
                return RedirectToAction("Invalid", "Home");
            }
            ViewData["qid"] = qid;
            return View();
        }