| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using Diligent.WebAPI.Contracts.DTOs.Applicant;
- using Diligent.WebAPI.Contracts.DTOs.Technology;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace Diligent.WebAPI.Contracts.DTOs.Ad
- {
- public class AdDetailsResponseDto
- {
- public int Id { get; set; }
-
- public string Title { get; set; }
-
- public int MinimumExperience { get; set; }
-
- public DateTime CreatedAt { get; set; }
-
- public DateTime ExpiredAt { get; set; }
-
- public string KeyResponsibilities { get; set; }
-
- public string Requirements { get; set; }
-
- public string Offer { get; set; }
-
- public int TotalApplicants { get { return CalculateTotalApplicants(); } }
-
- public List<TechnologyResponseDto> Technologies { get; set; }
-
- public List<ApplicantViewDto> Applicants { get; set; }
-
- private int CalculateTotalApplicants()
- {
- return Applicants.Count;
- }
- }
- }
|