| @@ -23,6 +23,12 @@ namespace Diligent.WebAPI.Business.Services | |||
| _userService = userService; | |||
| _configuration = configuration; | |||
| } | |||
| public ApplicantService(DatabaseContext context, IMapper mapper, ILogger<ApplicantService> logger) | |||
| { | |||
| _context = context; | |||
| _mapper = mapper; | |||
| _logger = logger; | |||
| } | |||
| public async Task<QueryResultDto<ApplicantViewDto>> GetFilteredApplicants(ApplicantFilterDto applicantFilterDto) | |||
| { | |||
| @@ -17,6 +17,13 @@ namespace Diligent.WebAPI.Business.Services | |||
| _userManager = userManager; | |||
| } | |||
| public SelectionProcessService(DatabaseContext context, IMapper mapper, ILogger<SelectionProcessService> logger) | |||
| { | |||
| _context = context; | |||
| _mapper = mapper; | |||
| _logger = logger; | |||
| } | |||
| public async Task<List<SelectionProcessResposneDto>> GetAllAsync() | |||
| { | |||
| _logger.LogInformation("Start getting all Selection Processes"); | |||
| @@ -8,6 +8,7 @@ namespace Diligent.WebAPI.Contracts.DTOs.SelectionProcess | |||
| public string Status { get; set; } | |||
| public DateTime? Date { get; set; } | |||
| public string? Link { get; set; } | |||
| public string? Comment { get; set; } | |||
| public UserResponseDTO Scheduler { get; set; } | |||
| public SelectionLevelResposneDto SelectionLevel { get; set; } | |||
| } | |||
| @@ -14,5 +14,6 @@ namespace Diligent.WebAPI.Contracts.DTOs.SelectionProcess | |||
| public int ProcessId { get; set; } | |||
| public int? SchedulerId { get; set; } | |||
| public DateTime? Appointment { get; set; } | |||
| public string? Comment { get; set; } | |||
| } | |||
| } | |||
| @@ -13,5 +13,6 @@ | |||
| public SelectionLevel? SelectionLevel { get; set; } | |||
| public int ApplicantId { get; set; } | |||
| public Applicant? Applicant { get; set; } | |||
| public string? Comment { get; set; } | |||
| } | |||
| } | |||
| @@ -0,0 +1,25 @@ | |||
| using Microsoft.EntityFrameworkCore.Migrations; | |||
| #nullable disable | |||
| namespace Diligent.WebAPI.Data.Migrations | |||
| { | |||
| public partial class CommentProcess : Migration | |||
| { | |||
| protected override void Up(MigrationBuilder migrationBuilder) | |||
| { | |||
| migrationBuilder.AddColumn<string>( | |||
| name: "Comment", | |||
| table: "SelectionProcesses", | |||
| type: "nvarchar(max)", | |||
| nullable: true); | |||
| } | |||
| protected override void Down(MigrationBuilder migrationBuilder) | |||
| { | |||
| migrationBuilder.DropColumn( | |||
| name: "Comment", | |||
| table: "SelectionProcesses"); | |||
| } | |||
| } | |||
| } | |||
| @@ -496,6 +496,9 @@ namespace Diligent.WebAPI.Data.Migrations | |||
| b.Property<int>("ApplicantId") | |||
| .HasColumnType("int"); | |||
| b.Property<string>("Comment") | |||
| .HasColumnType("nvarchar(max)"); | |||
| b.Property<DateTime?>("Date") | |||
| .HasColumnType("datetime2"); | |||