public async Task <IActionResult> AddDoctor(Doctor doctor) { await _context.Doctor.AddAsync(doctor); await _context.SaveChangesAsync(); return(new OkResult()); }
public async Task <IActionResult> AddDoctor(Doctor doctor) { await _context.Doctor.AddAsync(doctor); await _context.SaveChangesAsync(); return(new OkResult()); }