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