public IHttpActionResult PutAssociatedGroupWall(long id, AssociatedGroupWall associatedGroupWall)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

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

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetAssociatedGroupWall(long id)
        {
            AssociatedGroupWall associatedGroupWall = db.AssociatedGroupWall.Find(id);

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

            return(Ok(associatedGroupWall));
        }
        public IHttpActionResult PostAssociatedGroupWall(AssociatedGroupWall associatedGroupWall)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.AssociatedGroupWall.Add(associatedGroupWall);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = associatedGroupWall.Id }, associatedGroupWall));
        }
        public IHttpActionResult DeleteAssociatedGroupWall(long id)
        {
            AssociatedGroupWall associatedGroupWall = db.AssociatedGroupWall.Find(id);

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

            db.AssociatedGroupWall.Remove(associatedGroupWall);
            db.SaveChanges();

            return(Ok(associatedGroupWall));
        }