public async Task <IActionResult> Create([Bind("CheckinId,Checkindt,FirstName,LastName,Temperature,Question1,Question2,Question3,Question4,Question5")] Checkin checkin)
        {
            if (ModelState.IsValid)
            {
                _context.Add(checkin);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(checkin));
        }
        public async Task <IActionResult> Create([Bind("PatientId,RegistrationDate,FirstName,MiddleName,LastName,Age,Email,InsuranceType")] Patient patient)
        {
            if (ModelState.IsValid)
            {
                _context.Add(patient);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(patient));
        }
Beispiel #3
0
        public async Task <IActionResult> Create([Bind("DoctorId,FirstName,LastName,HireDate,Email,ConcentrationType")] Doctor doctor)
        {
            if (ModelState.IsValid)
            {
                _context.Add(doctor);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(doctor));
        }
        public async Task <IActionResult> Create([Bind("AppointmentId,DateTime,Location,Description")] Appointment appointment)
        {
            if (ModelState.IsValid)
            {
                _context.Add(appointment);
                await _context.SaveChangesAsync();

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