public async Task <IActionResult> Edit(int id, [Bind("Id,ResumeId,ToolsoftheTradeId")] TblResumeRelevantTool tblResumeRelevantTool) { if (id != tblResumeRelevantTool.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(tblResumeRelevantTool); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblResumeRelevantToolExists(tblResumeRelevantTool.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(tblResumeRelevantTool)); }
public async Task <IActionResult> Create([Bind("Id,ResumeId,ToolsoftheTradeId")] TblResumeRelevantTool tblResumeRelevantTool) { if (ModelState.IsValid) { _context.Add(tblResumeRelevantTool); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(tblResumeRelevantTool)); }