Files
Backend-Api/CompanyManagment.App.Contracts/EmployeeDocuments/WorkshopWithEmployeeDocumentsViewModel.cs
mahan ef865d9c68 Add Skill navigation to Phase/ProjectSection, refactor logic
- Add Skill navigation properties to PhaseSection and ProjectSection, with EF Core mappings and migration for foreign keys and indexes.
- Refactor SetSkillFlags in GetProjectsListQueryHandler for clarity and efficiency; use eager loading for Skill.
- Add HasRemainingTime() to TaskSection and enforce time check in ChangeStatusSectionCommandHandler.
- Optimize EmployeeDocumentsRepository queries; add EmployeeId to WorkshopWithEmployeeDocumentsViewModel.
- Improve CustomExceptionHandler to handle FluentValidation exceptions and return proper status codes.
- Add FluentValidation package reference and perform minor code cleanups.
2025-12-15 20:56:32 +03:30

19 lines
643 B
C#

using System;
using System.Collections.Generic;
namespace CompanyManagment.App.Contracts.EmployeeDocuments
{
public class WorkshopWithEmployeeDocumentsViewModel
{
public long WorkshopId { get; set; }
public string WorkshopFullName { get; set; }
public int SubmittedItemsCount { get; set; }
public DateTime LastUploadDateTime { get; set; }
public string LastUploadDateTimeFa { get; set; }
public string EmployerName { get; set; }
public List<EmployeeDocumentItemViewModel> SubmittedItems { get; set; }
public int EmployeesWithoutDocumentCount { get; set; }
public long EmployeeId { get; set; }
}
}