You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AdDetailsResponseDto.cs 1017B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Diligent.WebAPI.Contracts.DTOs.Applicant;
  2. using Diligent.WebAPI.Contracts.DTOs.Technology;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Diligent.WebAPI.Contracts.DTOs.Ad
  9. {
  10. public class AdDetailsResponseDto
  11. {
  12. public int Id { get; set; }
  13. public string Title { get; set; }
  14. public int MinimumExperience { get; set; }
  15. public DateTime CreatedAt { get; set; }
  16. public DateTime ExpiredAt { get; set; }
  17. public string KeyResponsibilities { get; set; }
  18. public string Requirements { get; set; }
  19. public string Offer { get; set; }
  20. public int TotalApplicants { get { return CalculateTotalApplicants(); } }
  21. public List<TechnologyResponseDto> Technologies { get; set; }
  22. public List<ApplicantViewDto> Applicants { get; set; }
  23. private int CalculateTotalApplicants()
  24. {
  25. return Applicants.Count;
  26. }
  27. }
  28. }