Merge branch 'refs/heads/master' into Feature/program-manager/set-Complete-on-Done
This commit is contained in:
@@ -74,6 +74,15 @@ public class Project : ProjectHierarchyNode
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveProjectSection(Guid skillId)
|
||||
{
|
||||
var section = _projectSections.FirstOrDefault(s => s.SkillId == skillId);
|
||||
if (section != null)
|
||||
{
|
||||
_projectSections.Remove(section);
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearProjectSections()
|
||||
{
|
||||
_projectSections.Clear();
|
||||
|
||||
@@ -87,6 +87,15 @@ public class ProjectPhase : ProjectHierarchyNode
|
||||
}
|
||||
}
|
||||
|
||||
public void RemovePhaseSection(Guid skillId)
|
||||
{
|
||||
var section = _phaseSections.FirstOrDefault(s => s.SkillId == skillId);
|
||||
if (section != null)
|
||||
{
|
||||
_phaseSections.Remove(section);
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearPhaseSections()
|
||||
{
|
||||
_phaseSections.Clear();
|
||||
|
||||
@@ -246,4 +246,9 @@ public class ProjectTask : ProjectHierarchyNode
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public void ClearTaskSections()
|
||||
{
|
||||
_sections.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,5 @@ public interface ITaskSectionRepository: IRepository<Guid,TaskSection>
|
||||
|
||||
Task<List<TaskSection>> GetAssignedToUserAsync(long userId);
|
||||
Task<List<TaskSection>> GetActiveSectionsIncludeAllAsync(CancellationToken cancellationToken);
|
||||
Task<bool> HasUserAnyInProgressSectionAsync(long userId, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user