public ActionResult VotePageAdd(VotePages page) { DbUser user = base.Session["user"] as DbUser; page.VoteID = user.LimitVoteID; SqlFactory.GetSqlhelper().Save <VotePages>(page); return(base.Success()); }
public ActionResult VotePageEdit(int id) { VotePages model = SqlFactory.GetSqlhelper().SingleById <VotePages>(id); return(base.View(model)); }