public async Task <IActionResult> Edit(int id, [Bind("Id,ResumeId,ProjectTitle,StartDate,EndDate,ProjectExperienceDetails,CompanyOrganizationName,SortOrderNum")] TblResumeProjectExperience tblResumeProjectExperience) { if (id != tblResumeProjectExperience.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(tblResumeProjectExperience); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblResumeProjectExperienceExists(tblResumeProjectExperience.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(tblResumeProjectExperience)); }
public async Task <IActionResult> Create([Bind("Id,ResumeId,ProjectTitle,StartDate,EndDate,ProjectExperienceDetails,CompanyOrganizationName,SortOrderNum")] TblResumeProjectExperience tblResumeProjectExperience) { if (ModelState.IsValid) { _context.Add(tblResumeProjectExperience); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(tblResumeProjectExperience)); }