public async Task <IActionResult> Edit(int id, [Bind("LineID,GoCanSubmissionGUID,FormName")] MySubmissions mySubmissions) { if (id != mySubmissions.LineID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(mySubmissions); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!MySubmissionsExists(mySubmissions.LineID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(mySubmissions)); }
public async Task <IActionResult> Create([Bind("LineID,GoCanSubmissionGUID,FormName")] MySubmissions mySubmissions) { if (ModelState.IsValid) { _context.Add(mySubmissions); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(mySubmissions)); }