public async Task<IHttpActionResult> PutCPGFD_Roles(int id, CPGFD_Roles cPGFD_Roles)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != cPGFD_Roles.RoleID)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostCPGFD_Roles(CPGFD_Roles cPGFD_Roles)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.CPGFD_Roles.Add(cPGFD_Roles);
            await db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = cPGFD_Roles.RoleID }, cPGFD_Roles);
        }