public async Task <IActionResult> Edit(int id, [Bind("Id,ResourceId,DateCreated,LastModified,CreatedBy,ModifiedBy,FileName,FilePath,ResumeId")] TblResumeFile tblResumeFile) { if (id != tblResumeFile.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(tblResumeFile); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TblResumeFileExists(tblResumeFile.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(tblResumeFile)); }
public async Task <IActionResult> Create([Bind("Id,ResourceId,DateCreated,LastModified,CreatedBy,ModifiedBy,FileName,FilePath,ResumeId")] TblResumeFile tblResumeFile) { if (ModelState.IsValid) { _context.Add(tblResumeFile); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(tblResumeFile)); }