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

Result() public method

public Result ( int aid ) : System.Web.Mvc.ActionResult
aid int
return System.Web.Mvc.ActionResult
        public ActionResult Result(int aid)
        {
            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");
            }

            return View();
        }