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); } }
public Task <List <VoteAnnex> > GetListIncludeAsync(VoteAnnexDto dto, CancellationToken token = default) { throw new NotImplementedException(); }
public Task UpdateAsync(VoteAnnexDto dto, CancellationToken token = default) { throw new NotImplementedException(); }