|
|
@ -39,6 +39,12 @@ namespace CoviDok.Controllers |
|
|
|
return await doctorHandler.GetDoctors(lastName: lastName); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet("byName/{firstName}/{lastName}")] |
|
|
|
public async Task<ActionResult<ICollection<PublicDoctor>>> GetDoctorByName(string firstName, string lastName) |
|
|
|
{ |
|
|
|
return await doctorHandler.GetDoctors(lastName: lastName, firstName: firstName); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet("{id}")] |
|
|
|
public async Task<ActionResult<PublicDoctor>> GetDoctor(int id) |
|
|
|
{ |
|
|
|