public async Task <IActionResult> Edit(int id, [Bind("IDNumber,Date,Q1,Q1_1,Q2,Q2_1,Q3,Q4,Q4_1,Q4_2,Q5,Q6," + "Q6_1,Q7,Q8,Q9,Q10,Q10_1,Q11,ID,CreatedByUser,CreatedDate," + "ModifiedByUser,ModifiedDate,Edited")] F15_24MAMA f15_24MAMA) { if (id != f15_24MAMA.ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(f15_24MAMA); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!F15_24MAMAExists(f15_24MAMA.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(f15_24MAMA)); }
public async Task <IActionResult> Create([Bind("IDNumber,Date,Q1,Q1_1,Q2,Q2_1,Q3,Q4,Q4_1,Q4_2,Q5,Q6,Q6_1,Q7," + "Q8,Q9,Q10,Q10_1,Q11,ID,CreatedByUser,CreatedDate,ModifiedByUser,ModifiedDate,Edited")] F15_24MAMA f15_24MAMA) { if (ModelState.IsValid) { _context.Add(f15_24MAMA); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(f15_24MAMA)); }