public async Task <IActionResult> Edit(int id, [Bind("HeaderId,FileName,FileType,SubmitterName,SubmissionDate,ValidationStatus,Levels,ResponseHierarchy,SchemaVersion,RecordYear,RecordMonth")] McpdipHeader mcpdipHeader) { if (id != mcpdipHeader.HeaderId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(mcpdipHeader); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!McpdipHeaderExists(mcpdipHeader.HeaderId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(mcpdipHeader)); }