add: implement ChangeDeployStatusProject command and handler for updating project deployment status

This commit is contained in:
2025-12-30 11:10:40 +03:30
parent d855684cd7
commit 1e733f3f20
7 changed files with 54 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ public class ProjectPhase : ProjectHierarchyNode
ProjectId = projectId;
_tasks = new List<ProjectTask>();
_phaseSections = new List<PhaseSection>();
DeployStatus = ProjectDeployStatus.NoTCompleted;
DeployStatus = ProjectDeployStatus.NotCompleted;
AddDomainEvent(new PhaseCreatedEvent(Id, projectId, name));
}
@@ -216,7 +216,7 @@ public class ProjectPhase : ProjectHierarchyNode
public enum ProjectDeployStatus
{
NoTCompleted,
NotCompleted,
PendingDevDeploy,
DevDeployed,
PendingDeploy,

View File

@@ -5,7 +5,7 @@ namespace GozareshgirProgramManager.Domain._Common;
public interface IRepository<TKey, T> where T:class
{
T Get(TKey id);
Task<T?> GetByIdAsync(TKey id);
Task<T?> GetByIdAsync(TKey id, CancellationToken cancellationToken = default);
List<T> Get();
IQueryable<T> GetQueryable();
void Create(T entity);