public IHttpActionResult PostsetupCompanyA(setupCompanyA setupCompanyA)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.setupCompanyAs.Add(setupCompanyA);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (setupCompanyAExists(setupCompanyA.uCompanyID))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtRoute("DefaultApi", new { id = setupCompanyA.uCompanyID }, setupCompanyA));
        }
        public IHttpActionResult PutsetupCompanyA(string id, setupCompanyA setupCompanyA)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != setupCompanyA.uCompanyID)
            {
                return(BadRequest());
            }

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetsetupCompanyA(string id)
        {
            setupCompanyA setupCompanyA = db.setupCompanyAs.Find(id);

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

            return(Ok(setupCompanyA));
        }
        public IHttpActionResult DeletesetupCompanyA(string id)
        {
            setupCompanyA setupCompanyA = db.setupCompanyAs.Find(id);

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

            db.setupCompanyAs.Remove(setupCompanyA);
            db.SaveChanges();

            return(Ok(setupCompanyA));
        }