public async Task <IActionResult> Edit(int id, [Bind("ExaminationID,Advice,BloodPressure,Complication,HBTest,Height,Medication,MotherID,Weight")] MotherExamination motherExamination)
        {
            if (id != motherExamination.ExaminationID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(motherExamination);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!MotherExaminationExists(motherExamination.ExaminationID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction("Index"));
            }
            ViewData["MotherID"] = new SelectList(_context.Mothers, "MotherID", "MotherID", motherExamination.MotherID);
            return(View(motherExamination));
        }
        public async Task <IActionResult> Create([Bind("ExaminationID,Advice,BloodPressure,Complication,HBTest,Height,Medication,MotherID,Weight")] MotherExamination motherExamination)
        {
            if (ModelState.IsValid)
            {
                _context.Add(motherExamination);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewData["MotherID"] = new SelectList(_context.Mothers, "MotherID", "MotherID", motherExamination.MotherID);
            return(View(motherExamination));
        }