public IActionResult AddDoctorTimeSlots(string doctorId, [FromBody] DoctorTimeSlots ts) { try { service.AddDoctorTimeSlot(doctorId, ts); return(Ok($"Time Slot added for doctor with id {doctorId}")); } catch (Exception exe) { return(BadRequest(exe.Message)); } }