public IHttpActionResult PutPERSONALSTUFFS(int id, PERSONALSTUFFS pERSONALSTUFFS)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

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

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

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetPERSONALSTUFFS(int id)
        {
            PERSONALSTUFFS pERSONALSTUFFS = db.PERSONALSTUFFS.Find(id);

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

            return(Ok(pERSONALSTUFFS));
        }
        public IHttpActionResult PostPERSONALSTUFFS(PERSONALSTUFFS pERSONALSTUFFS)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.PERSONALSTUFFS.Add(pERSONALSTUFFS);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = pERSONALSTUFFS.FriendID }, pERSONALSTUFFS));
        }
        public IHttpActionResult DeletePERSONALSTUFFS(int id)
        {
            PERSONALSTUFFS pERSONALSTUFFS = db.PERSONALSTUFFS.Find(id);

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

            db.PERSONALSTUFFS.Remove(pERSONALSTUFFS);
            db.SaveChanges();

            return(Ok(pERSONALSTUFFS));
        }