public ActionResult Delete(int questionid, int id, String name)
{
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");
}
questionModel q = new questionModel(questionid);
q.deleteQuestion();
return RedirectToAction("Index", "Question", new { id = id, name = name });
}