feat: add Id property to WeekDefinitionItemDto and map it in CommissionProfile - Enhanced week definition handling by including the Id in the DTO and mapping configuration
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m51s

This commit is contained in:
masoodafar-web
2025-12-28 22:21:43 +03:30
parent ed45a1759b
commit 500e169141
3 changed files with 5 additions and 0 deletions
@@ -107,6 +107,7 @@ public class GetWeekDefinitionsQueryHandler : IRequestHandler<GetWeekDefinitions
// تبدیل به DTO
var weekDtos = weeksList.Select(w => new WeekDefinitionItemDto
{
Id = w.Id,
WeekOrder = w.WeekOrder,
DisplayName = w.DisplayName,
GregorianWeekNumber = w.GregorianWeekNumber,
@@ -17,6 +17,9 @@ public class GetWeekDefinitionsResponseDto
/// </summary>
public class WeekDefinitionItemDto
{
//شناسه هفته
public long Id { get; set; }
//شماره ترتیب هفته (1, 2, 3, ...)
public int WeekOrder { get; set; }