public async Task <IActionResult> Create([Bind("IDNumber,Tarehe,SexMt,TareheKuzaliwa,UmriMtotoMiezi,Q1,Q2,Q3,Q3_a," + "Q3_b,Q4,Q5_1_a,Q5_1_b,Q5_1_c,Q5_1_e,Q5_2_a,Q5_2_b,Q5_2_c,Q5_2_e,Q5_3_a,Q5_3_b,Q5_3_c,Q5_3_e,Q5_4_a,Q5_4_b," + "Q5_4_c,Q5_4_e,Q5_5_a,Q5_5_b,Q5_5_c,Q5_5_e,Q6_1,Q6_1_a,Q6_2,Q6_2_a,Q6_3,Q6_3_a,Q6_4,Q6_4_a,Q6_5,Q6_5_a," + "Q6_6,Q6_6_a,Q6_7,Q6_7_a,Q6_8,Q6_8_a,Q7,Q7_1,Q8,Q8_1,Q9_a_1,Q9_a_2,Q9_a_3,Q9_a_4,Q9_a_5,Q9_b_1,Q9_b_2," + "Q9_b_3,Q9_b_4,Q9_b_5,Q9_c_1,Q9_c_2,Q9_c_3,Q9_c_4,Q9_c_5,Q10,Q10_a,Q10_b,Q10_c,Q10_d,Q10_e,Q11_a,Q11_b," + "Q11_c,Q12_a,Q12_b,Q12_c,Q13_a,Q13_b,Q13_c,Q13_d,Q13_e,Q13_f,Q14_a,Q14_b,Q14_c,Q14_d,Q14_e,Q14_f,Q14_g," + "Q15_a,Q15_b,Q15_c,Q15_d,Q15_e,Q15_f,Q15_g,Q15_h,Q16_a,Q16_b,Q16_c,Q17_a,Q17_b,Q17_c,ProblemsDsis," + "MedicationPres,Date3Month,ID,CreatedByUser,CreatedDate,ModifiedByUser,ModifiedDate,Edited")] FTMTOTO fTMTOTO) { if (ModelState.IsValid) { _context.Add(fTMTOTO); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(fTMTOTO)); }
public async Task <IActionResult> Edit(int id, [Bind("IDNumber,Tarehe,SexMt,TareheKuzaliwa,UmriMtotoMiezi,Q1,Q2,Q3," + "Q3_a,Q3_b,Q4,Q5_1_a,Q5_1_b,Q5_1_c,Q5_1_e,Q5_2_a,Q5_2_b,Q5_2_c,Q5_2_e,Q5_3_a,Q5_3_b,Q5_3_c,Q5_3_e," + "Q5_4_a,Q5_4_b,Q5_4_c,Q5_4_e,Q5_5_a,Q5_5_b,Q5_5_c,Q5_5_e,Q6_1,Q6_1_a,Q6_2,Q6_2_a,Q6_3,Q6_3_a,Q6_4," + "Q6_4_a,Q6_5,Q6_5_a,Q6_6,Q6_6_a,Q6_7,Q6_7_a,Q6_8,Q6_8_a,Q7,Q7_1,Q8,Q8_1,Q9_a_1,Q9_a_2,Q9_a_3," + "Q9_a_4,Q9_a_5,Q9_b_1,Q9_b_2,Q9_b_3,Q9_b_4,Q9_b_5,Q9_c_1,Q9_c_2,Q9_c_3,Q9_c_4,Q9_c_5,Q10,Q10_a," + "Q10_b,Q10_c,Q10_d,Q10_e,Q11_a,Q11_b,Q11_c,Q12_a,Q12_b,Q12_c,Q13_a,Q13_b,Q13_c,Q13_d,Q13_e,Q13_f," + "Q14_a,Q14_b,Q14_c,Q14_d,Q14_e,Q14_f,Q14_g,Q15_a,Q15_b,Q15_c,Q15_d,Q15_e,Q15_f,Q15_g,Q15_h,Q16_a," + "Q16_b,Q16_c,Q17_a,Q17_b,Q17_c,ProblemsDsis,MedicationPres,Date3Month,ID,CreatedByUser,CreatedDate," + "ModifiedByUser,ModifiedDate,Edited")] FTMTOTO fTMTOTO) { if (id != fTMTOTO.ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(fTMTOTO); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FTMTOTOExists(fTMTOTO.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(fTMTOTO)); }