public async Task <VoteAssociationVipOwner> AddAsync(VoteAssociationVipOwnerDto dto, CancellationToken token = default) { using (var db = new GuoGuoCommunityContext()) { var entity = db.VoteAssociationVipOwners.Add(new VoteAssociationVipOwner { VipOwnerId = dto.VipOwnerId, VoteId = dto.VoteId, CreateOperationTime = dto.OperationTime, CreateOperationUserId = dto.OperationUserId, ElectionNumber = dto.ElectionNumber }); await db.SaveChangesAsync(token); return(entity); } }
public Task UpdateAsync(VoteAssociationVipOwnerDto dto, CancellationToken token = default) { throw new NotImplementedException(); }
public Task <List <VoteAssociationVipOwner> > GetListIncludeAsync(VoteAssociationVipOwnerDto dto, CancellationToken token = default) { throw new NotImplementedException(); }