public IHttpActionResult getAll()
        {
            try
            {
                var listAppointments = appointmentsServices.getAllAppointments();

                if (!listAppointments.Any())
                {
                    return(NotFound());
                }

                return(Ok(listAppointments));
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }