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

CreateShortAnswer() public method

Returns view to create short answer questions. NOTE: Creation is not done here. Creation is performed in the [AcceptVerbs(HttpVerbs.Post)] which is the POST version of this method.
public CreateShortAnswer ( int pollid ) : System.Web.Mvc.ActionResult
pollid int
return System.Web.Mvc.ActionResult
        public ActionResult CreateShortAnswer(int pollid)
        {
            if (Session["uid"] == null || Session["uid"].ToString().Equals(""))
            {
                return RedirectToAction("Index", "Home");
            }
            if ((int)Session["user_type"] < User_Type.POLL_CREATOR)
            {
                return RedirectToAction("Invalid", "Home");
            }

            ViewData["id"] = pollid;
            return View();
        }

Same methods

QuestionController::CreateShortAnswer ( int shortanswertype, String num, String question, int chartstyle, int pollid ) : System.Web.Mvc.ActionResult