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

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

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

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

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

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

            return(Ok(customer_teams));
        }
        public IHttpActionResult Postcustomer_teams(customer_teams customer_teams)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.customer_teams.Add(customer_teams);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = customer_teams.id }, customer_teams));
        }
        public IHttpActionResult Deletecustomer_teams(int id)
        {
            customer_teams customer_teams = db.customer_teams.Find(id);

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

            db.customer_teams.Remove(customer_teams);
            db.SaveChanges();

            return(Ok(customer_teams));
        }