コード例 #1
0
        public long CreateParty(PartyTable party)
        {
            var          dbParty      = _pr.CreateParty(party);
            UsersAtParty usersAtParty = new UsersAtParty
            {
                partyID         = dbParty.ID,
                userID          = party.ownerID,
                adminPrivileges = true,
                status          = 1
            };

            _upr.CreateUserAtParty(usersAtParty, dbParty.RowVersion);
            return(dbParty.ID);
        }
コード例 #2
0
 public bool CreateParty(Party party, int election_id)
 {
     return(partyrepo.CreateParty(party, election_id));
 }