public IHttpActionResult Put帘布入库(Guid id, 帘布入库 帘布入库)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != 帘布入库.Id)
            {
                return(BadRequest());
            }

            db.Entry(帘布入库).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!帘布入库Exists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult Post帘布入库(帘布入库 帘布入库)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.帘布入库.Add(帘布入库);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (帘布入库Exists(帘布入库.Id))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = 帘布入库.Id }, 帘布入库));
        }
        public IHttpActionResult Get帘布入库(Guid id)
        {
            帘布入库 帘布入库 = db.帘布入库.Find(id);

            if (帘布入库 == null)
            {
                return(NotFound());
            }

            return(Ok(帘布入库));
        }