public async Task <IActionResult> Edit(int?id, [Bind("Gamous,BurialSquare,Nors,Sq2,Eorw,Area,Burialnum,Westtohead,Westtofeet,Southtohead,Southtofeet,Depth,Preservation,Burialicon,Sex,Sexmethod,Ageatdeath,Agemethod,Haircolor,Sample")] OracleSpreads oracleSpread) { if (id != oracleSpread.Gamous) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(oracleSpread); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!OracleSpreadExists(oracleSpread.Gamous)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(oracleSpread)); }
public async Task <IActionResult> Create([Bind("Gamous,BurialSquare,Nors,Sq2,Eorw,Area,Burialnum,Westtohead,Westtofeet,Southtohead,Southtofeet,Depth,Preservation,Burialicon,Sex,Sexmethod,Ageatdeath,Agemethod,Haircolor,Sample")] OracleSpreads oracleSpreads) { if (ModelState.IsValid) { _context.Add(oracleSpreads); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(oracleSpreads)); }