Exemplo n.º 1
0
 public HttpResponseMessage PostRandevu(rande ran)
 {
     try
     {
         using (var db = new HastaneDBEntities())
         {
             return(Request.CreateResponse(HttpStatusCode.OK, db.GetAnAppointment(ran.Pid, ran.Did, ran.date, ran.time)));
         }
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
     }
 }