public IHttpActionResult aPosttparaconfig(tparaconfig tparaconfig)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.tparaconfigs.Add(tparaconfig);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (tparaconfigExists(tparaconfig.paratype))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = tparaconfig.paratype }, tparaconfig));
        }
        public IHttpActionResult aPuttparaconfig(string id, tparaconfig tparaconfig)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != tparaconfig.paratype)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult aGettparaconfig(string id)
        {
            tparaconfig tparaconfig = db.tparaconfigs.Find(id);

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

            return(Ok(tparaconfig));
        }
        public IHttpActionResult Deletetparaconfig(string id)
        {
            tparaconfig tparaconfig = db.tparaconfigs.Find(id);

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

            db.tparaconfigs.Remove(tparaconfig);
            db.SaveChanges();

            return(Ok(tparaconfig));
        }