From 656bb49fab26bfb8442b13845781fca4ba53a2c1 Mon Sep 17 00:00:00 2001 From: mahan Date: Tue, 30 Dec 2025 12:30:06 +0330 Subject: [PATCH] add: remove GetByIdAsync method and add Id property to ProjectDeployBoardListItem --- .../ProjectDeployBoardListQueryHandler.cs | 2 ++ .../ProjectAgg/Repositories/ITaskSectionActivityRepository.cs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectDeployBoardList/ProjectDeployBoardListQueryHandler.cs b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectDeployBoardList/ProjectDeployBoardListQueryHandler.cs index 7ee495b4..d0b7e6e5 100644 --- a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectDeployBoardList/ProjectDeployBoardListQueryHandler.cs +++ b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectDeployBoardList/ProjectDeployBoardListQueryHandler.cs @@ -10,6 +10,7 @@ namespace GozareshgirProgramManager.Application.Modules.Projects.Queries.Project public record ProjectDeployBoardListItem() { + public Guid Id { get; set; } public string ProjectName { get; set; } public string PhaseName { get; set; } public int TotalTasks { get; set; } @@ -55,6 +56,7 @@ public class ProjectDeployBoardListQueryHandler:IBaseQueryHandler new ProjectDeployBoardListItem { + Id = g.Key, ProjectName = g.First().Task.Phase.Project.Name, PhaseName = g.First().Task.Phase.Name, TotalTasks = g.Select(x => x.TaskId).Distinct().Count(), diff --git a/ProgramManager/src/Domain/GozareshgirProgramManager.Domain/ProjectAgg/Repositories/ITaskSectionActivityRepository.cs b/ProgramManager/src/Domain/GozareshgirProgramManager.Domain/ProjectAgg/Repositories/ITaskSectionActivityRepository.cs index d20ef6e0..55eff1be 100644 --- a/ProgramManager/src/Domain/GozareshgirProgramManager.Domain/ProjectAgg/Repositories/ITaskSectionActivityRepository.cs +++ b/ProgramManager/src/Domain/GozareshgirProgramManager.Domain/ProjectAgg/Repositories/ITaskSectionActivityRepository.cs @@ -5,7 +5,6 @@ namespace GozareshgirProgramManager.Domain.ProjectAgg.Repositories; public interface ITaskSectionActivityRepository:IRepository { - Task GetByIdAsync(Guid id); Task> GetBySectionIdAsync(Guid sectionId); Task> GetByUserIdAsync(long userId); Task> GetActiveByUserAsync(long userId);