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 Technologies { get; set; } public List Applicants { get; set; } private int CalculateTotalApplicants() { return Applicants.Count; } } }