public async Task <IActionResult> Edit(int id, [Bind("JobId,Company,Description,DurationMonths")] JobPostings jobPostings)
        {
            if (id != jobPostings.JobId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(jobPostings);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!JobPostingsExists(jobPostings.JobId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(jobPostings));
        }
        public async Task <IActionResult> Edit(int id, [Bind("ApplicantId,ApplicantResume,ApplicantLocation,JobApplied")] Applicants applicants)
        {
            if (id != applicants.ApplicantId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(applicants);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ApplicantsExists(applicants.ApplicantId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["JobApplied"] = new SelectList(_context.JobPostings, "JobId", "Company", applicants.JobApplied);
            return(View(applicants));
        }