public async Task <IActionResult> Edit(int id, [Bind("hiring_agency,jobLink,jobNum,job_ID,business_title,civil_title,title_class,job_category,career_level,work_location,division_work_unit,total_openings,title_code,level,proposed_salary_range,posted,post_until")] job_info_short job_info_short) { if (id != job_info_short.jobNum) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(job_info_short); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!job_info_shortExists(job_info_short.jobNum)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(job_info_short)); }
public async Task <IActionResult> Create([Bind("hiring_agency,jobLink,jobNum,job_ID,business_title,civil_title,title_class,job_category,career_level,work_location,division_work_unit,total_openings,title_code,level,proposed_salary_range,posted,post_until")] job_info_short job_info_short) { if (ModelState.IsValid) { _context.Add(job_info_short); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(job_info_short)); }