DBPOLLDemo.Controllers.PollObjectController.Create C# (CSharp) Method

Create() public method

public Create ( int pollid ) : System.Web.Mvc.ActionResult
pollid int
return System.Web.Mvc.ActionResult
        public ActionResult Create(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["pollid"] = pollid;
            return View();
        }

Same methods

PollObjectController::Create ( int obtype, String attribute, int pollid ) : System.Web.Mvc.ActionResult
PollObjectController