// PUT api/Restaurant/5
        public HttpResponseMessage PutRestaurant(int id, T_E_RESTAURANT_RES t_e_restaurant_res)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != t_e_restaurant_res.RES_ID)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(t_e_restaurant_res).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }
        // POST api/Restaurant
        public HttpResponseMessage PostRestaurant(T_E_RESTAURANT_RES t_e_restaurant_res)
        {
            if (ModelState.IsValid)
            {
                db.T_E_RESTAURANT_RES.Add(t_e_restaurant_res);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, t_e_restaurant_res);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = t_e_restaurant_res.RES_ID }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }