From 3ee1da6a1220e39572e539f833e24057890930e8 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Sat, 11 Jan 2025 15:42:22 +0700 Subject: [PATCH] fixing number to thai --- .../Repositories/Reports/ProbationReportRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs index 39f41650..acf4aa37 100644 --- a/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs +++ b/BMA.EHR.Application/Repositories/Reports/ProbationReportRepository.cs @@ -100,7 +100,7 @@ namespace BMA.EHR.Application.Repositories.Reports var laws = probation_assign.result.laws.Where(x => x.selected == true).Select((x, Index) => new { - title = string.IsNullOrEmpty(x.description) ? string.Empty : $"{Index + 1}. {x.description.ToThaiNumber()}", + title = string.IsNullOrEmpty(x.description) ? string.Empty : $"{(Index + 1).ToString().ToThaiNumber()}. {x.description.ToThaiNumber()}", }).ToList(); return new