public IActionResult GetByIdAsync(int id)
 {
     try
     {
         var result = _AppointmentServices.GetById(id);
         return(Ok(result));
     }
     catch (System.Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }