// GET: Dashboard/Details/5
        public ActionResult Details(int id)
        {
            var getDetails = _jobPostRepo.GetJobPostWithApplicant(id);
            var model      = new JobPostModel
            {
                DateCreated        = getDetails.DateCreated,
                Description        = getDetails.Description,
                JobTitle           = getDetails.JobTitle,
                Id                 = getDetails.Id,
                IsClosed           = getDetails.IsClosed,
                Withdraw           = getDetails.Applicants.Count(x => x.HiringStatus == "Withdraw"),
                ImmediateRejection = getDetails.Applicants.Count(x => x.HiringStatus == "Immediate Rejection"),
                Interviewed        = getDetails.Applicants.Count(x => x.HiringStatus == "Interview"),
                Hired              = getDetails.Applicants.Count(x => x.HiringStatus == "Hired"),
                New                = getDetails.Applicants.Count(x => x.HiringStatus == "New"),
                TotalApplications  = getDetails.Applicants.Count(),
                Applicants         = getDetails.Applicants
            };

            return(View(model));
        }