public async Task <HistoryRecord> SaveHistoryAsync(HistoryRecord record) { var result = await Records.AddAsync(record); await this.SaveChangesAsync(); return(result.Entity); }