// POST: odata/T_FLOODWALL_DW
        public IHttpActionResult Post(T_FLOODWALL_DW T_FLOODWALL_DW)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.T_FLOODWALL_DW.Add(T_FLOODWALL_DW);
            db.SaveChanges();

            return(Created(T_FLOODWALL_DW));
        }
        // DELETE: odata/T_FLOODWALL_DW(5)
        public IHttpActionResult Delete([FromODataUri] decimal key)
        {
            T_FLOODWALL_DW T_FLOODWALL_DW = db.T_FLOODWALL_DW.Find(key);

            if (T_FLOODWALL_DW == null)
            {
                return(NotFound());
            }

            db.T_FLOODWALL_DW.Remove(T_FLOODWALL_DW);
            db.SaveChanges();

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult Patch([FromODataUri] decimal key, Delta <T_FLOODWALL_DW> patch)
        {
            Validate(patch.GetEntity());

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            T_FLOODWALL_DW T_FLOODWALL_DW = db.T_FLOODWALL_DW.Find(key);

            if (T_FLOODWALL_DW == null)
            {
                return(NotFound());
            }

            patch.Patch(T_FLOODWALL_DW);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!T_FLOODWALL_DWExists(key))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(Updated(T_FLOODWALL_DW));
        }