public HttpResponseMessage Postrandevu(Id id)
 {
     try
     {
         using (var db = new HastaneDBEntities())
         {
             return(Request.CreateResponse(HttpStatusCode.OK, db.AppointmentAfter(id.id).ToList()));
         }
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }