public IHttpActionResult PutCore_UserRole(int id, Core_UserRole Core_UserRole)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

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

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetCore_UserRole(int id)
        {
            Core_UserRole Core_UserRole = db.Core_UserRole.Find(id);

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

            return(Ok(Core_UserRole));
        }
        public IHttpActionResult PostCore_UserRole(Core_UserRole Core_UserRole)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Core_UserRole.Add(Core_UserRole);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = Core_UserRole.ID }, Core_UserRole));
        }
        public IHttpActionResult DeleteCore_UserRole(int id)
        {
            Core_UserRole Core_UserRole = db.Core_UserRole.Find(id);

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

            db.Core_UserRole.Remove(Core_UserRole);
            db.SaveChanges();

            return(Ok(Core_UserRole));
        }