public async Task <List <StationLetterBrowseRecord> > GetListAsync(StationLetterBrowseRecordDto dto, CancellationToken token = default)
 {
     using (var db = new GuoGuoCommunityContext())
     {
         return(await db.StationLetterBrowseRecords.Where(x => x.StationLetterId == dto.StationLetterId && x.CreateOperationUserId == dto.OperationUserId).ToListAsync(token));
     }
 }
        public async Task <StationLetterBrowseRecord> AddAsync(StationLetterBrowseRecordDto dto, CancellationToken token = default)
        {
            using (var db = new GuoGuoCommunityContext())
            {
                var entity = db.StationLetterBrowseRecords.Add(new StationLetterBrowseRecord
                {
                    StationLetterId       = dto.StationLetterId,
                    CreateOperationTime   = dto.OperationTime,
                    CreateOperationUserId = dto.OperationUserId,
                });
                await db.SaveChangesAsync(token);

                return(entity);
            }
        }
 public Task UpdateAsync(StationLetterBrowseRecordDto dto, CancellationToken token = default)
 {
     throw new NotImplementedException();
 }
 public Task <List <StationLetterBrowseRecord> > GetListIncludeAsync(StationLetterBrowseRecordDto dto, CancellationToken token = default)
 {
     throw new NotImplementedException();
 }