diff --git a/CoviDok/Controllers/DoctorController.cs b/CoviDok/Controllers/DoctorController.cs index 744b523..fd499c3 100644 --- a/CoviDok/Controllers/DoctorController.cs +++ b/CoviDok/Controllers/DoctorController.cs @@ -39,6 +39,12 @@ namespace CoviDok.Controllers return await doctorHandler.GetDoctors(lastName: lastName); } + [HttpGet("byName/{firstName}/{lastName}")] + public async Task>> GetDoctorByName(string firstName, string lastName) + { + return await doctorHandler.GetDoctors(lastName: lastName, firstName: firstName); + } + [HttpGet("{id}")] public async Task> GetDoctor(int id) {