public async Task <IActionResult> Create([Bind("typeOfPain,MTId,patientId,availabilityQueues")] AppointmentSystems appointmentSystems)
        {
            if (ModelState.IsValid)
            {
                _context.Add(appointmentSystems);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(appointmentSystems));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Create([Bind("patientId,fullName,gender,city,typeOfPain")] Patients patients)
        {
            if (ModelState.IsValid)
            {
                _context.Add(patients);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(patients));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> Create([Bind("MTId,fullName,gender,specialization,availability,location,previousExprience")] MedicalTeam medicalTeam)
        {
            if (ModelState.IsValid)
            {
                _context.Add(medicalTeam);
                await _context.SaveChangesAsync();

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