public IHttpActionResult PostC7602Interest(C7602Interest c7602Interest)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            c7602Interest = new C7602Interest("CH", "Chill");

            db.C7602Interest.Add(c7602Interest);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (C7602InterestExists(c7602Interest.InterestCode))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = c7602Interest.InterestCode }, c7602Interest));
        }
        public IHttpActionResult PutC7602Interest(string id, C7602Interest c7602Interest)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != c7602Interest.InterestCode)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetC7602Interest(string id)
        {
            C7602Interest c7602Interest = db.C7602Interest.Find(id);

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

            return(Ok(c7602Interest));
        }
        public IHttpActionResult DeleteC7602Interest(string id)
        {
            C7602Interest c7602Interest = db.C7602Interest.Find(id);

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

            db.C7602Interest.Remove(c7602Interest);
            db.SaveChanges();

            return(Ok(c7602Interest));
        }