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