public IHttpActionResult PutKM_file_Keywords(long id, KM_file_Keywords kM_file_Keywords)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != kM_file_Keywords.SeqNo)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetKM_file_Keywords(long id)
        {
            KM_file_Keywords kM_file_Keywords = db.KM_file_Keywords.Find(id);

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

            return(Ok(kM_file_Keywords));
        }
        public IHttpActionResult PostKM_file_Keywords(KM_file_Keywords kM_file_Keywords)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.KM_file_Keywords.Add(kM_file_Keywords);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = kM_file_Keywords.SeqNo }, kM_file_Keywords));
        }
        public IHttpActionResult DeleteKM_file_Keywords(long id)
        {
            KM_file_Keywords kM_file_Keywords = db.KM_file_Keywords.Find(id);

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

            db.KM_file_Keywords.Remove(kM_file_Keywords);
            db.SaveChanges();

            return(Ok(kM_file_Keywords));
        }