public Doctor CreateDoctor(Doctor doctor) { var model = _clinicAppContext.Doctors.Add(doctor); _clinicAppContext.SaveChanges(); return(model); }
public Patient CreatePatient(Patient patient) { _clinicAppContext.Patients.Add(patient); _clinicAppContext.SaveChanges(); return(patient); }