public IActionResult GetAll()
 {
     try
     {
         var result = _AppointmentServices.GetAll();
         return(new ObjectResult(result));
     }
     catch (System.Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }