private void detach_VoteByUsers(VoteByUser entity) { this.SendPropertyChanging(); entity.VoteUser = null; }
public ActionResult Vote( String returnUrl ) { var voteByUser = new VoteByUser { user_id = voteRepository.GetUserId( User.Identity.Name ), vote_id = Int64.Parse( Request.Form["vote_id"] ), answer_n = Int32.Parse( Request.Form["answer_order_n"] ) }; voteRepository.Vote( voteByUser ); return Redirect( returnUrl ); }
private void attach_VoteByUsers(VoteByUser entity) { this.SendPropertyChanging(); entity.VoteUser = this; }
partial void DeleteVoteByUser(VoteByUser instance);
partial void UpdateVoteByUser(VoteByUser instance);
partial void InsertVoteByUser(VoteByUser instance);
public void Vote( VoteByUser voteByUser ) { _db.VoteByUsers.InsertOnSubmit( voteByUser ); Save(); }