Esempio n. 1
0
        public async Task <IActionResult> Edit(int id, [Bind("Date,IDNumber,Q1,Q1_1,Q2,Q2_1,Q3,Q3_1,Q4,Q4_1,Q5,Q6,Q6_1," +
                                                             "Q7,Q8,Q8_1,Q9,Q10,Q11,Q12,Q13,Q13_1,Q14,Q15,Q16,Q17,Q18,Q19,Q20,Q21,Q22,Q23,Q24,Q25," +
                                                             "Q26,ProblemsDiagnosis,ManagementFT,DateVisit6,ID,CreatedByUser,CreatedDate," +
                                                             "ModifiedByUser,ModifiedDate,Edited")] FTMAMA fTMAMA)
        {
            if (id != fTMAMA.ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(fTMAMA);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FTMAMAExists(fTMAMA.ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(fTMAMA));
        }
Esempio n. 2
0
        public async Task <IActionResult> Create([Bind("Date,IDNumber,Q1,Q1_1,Q2,Q2_1,Q3,Q3_1,Q4,Q4_1,Q5,Q6,Q6_1,Q7," +
                                                       "Q8,Q8_1,Q9,Q10,Q11,Q12,Q13,Q13_1,Q14,Q15,Q16,Q17,Q18,Q19,Q20,Q21,Q22,Q23,Q24,Q25,Q26," +
                                                       "ProblemsDiagnosis,ManagementFT,DateVisit6,ID,CreatedByUser," +
                                                       "CreatedDate,ModifiedByUser,ModifiedDate,Edited")] FTMAMA fTMAMA)
        {
            if (ModelState.IsValid)
            {
                _context.Add(fTMAMA);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(fTMAMA));
        }