Ejemplo n.º 1
0
        public async Task <VoteAnnex> AddAsync(VoteAnnexDto dto, CancellationToken token = default)
        {
            using (var db = new GuoGuoCommunityContext())
            {
                var entity = db.VoteAnnices.Add(new VoteAnnex
                {
                    VoteId                = dto.VoteId,
                    AnnexContent          = dto.AnnexContent,
                    CreateOperationTime   = dto.OperationTime,
                    CreateOperationUserId = dto.OperationUserId,
                });
                await db.SaveChangesAsync(token);

                return(entity);
            }
        }
Ejemplo n.º 2
0
 public Task <List <VoteAnnex> > GetListIncludeAsync(VoteAnnexDto dto, CancellationToken token = default)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public Task UpdateAsync(VoteAnnexDto dto, CancellationToken token = default)
 {
     throw new NotImplementedException();
 }