public void State(int id, int state) { Tunnel.Model.Tunnel_Vote tvv = new Tunnel_Vote(); tvv = tbll.GetModel(id); tvv.vote_state = tvv.vote_state == 0 ? 1 : 0; tbll.Update(tvv); }
public void Top(int id, int top) { Tunnel.Model.Tunnel_Vote tvv = new Tunnel_Vote(); tvv = tbll.GetModel(id); tvv.vote_top = tvv.vote_top == 0 ? 1 : 0; tbll.Update(tvv); }