public async Task<IHttpActionResult> PutCPGFD_SLTRules(int id, CPGFD_SLTRules cPGFD_SLTRules)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != cPGFD_SLTRules.ID)
            {
                return BadRequest();
            }

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

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!CPGFD_SLTRulesExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostCPGFD_SLTRules(CPGFD_SLTRules cPGFD_SLTRules)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.CPGFD_SLTRules.Add(cPGFD_SLTRules);
            await db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = cPGFD_SLTRules.ID }, cPGFD_SLTRules);
        }