public ActionResult VoteBonusAdd(TF.WeiXinVote.Data.VoteBonus bonus) { DbUser user = base.Session["user"] as DbUser; bonus.VoteID = user.LimitVoteID; SqlFactory.GetSqlhelper().Save <TF.WeiXinVote.Data.VoteBonus>(bonus); return(base.Success()); }
public ActionResult VoteBonusEdit(TF.WeiXinVote.Data.VoteBonus bonus) { SqlFactory.GetSqlhelper().Save <TF.WeiXinVote.Data.VoteBonus>(bonus); return(base.Success()); }
public ActionResult VoteBonusEdit(int id) { TF.WeiXinVote.Data.VoteBonus model = SqlFactory.GetSqlhelper().SingleById <TF.WeiXinVote.Data.VoteBonus>(id); return(base.View(model)); }