public IHttpActionResult GetMiscAddition(int id)
        {
            MiscAddition miscAddition = db.MiscAdditions.Find(id);

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

            return(Ok(miscAddition));
        }
        public IHttpActionResult PostMiscAddition(MiscAddition miscAddition)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.MiscAdditions.Add(miscAddition);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = miscAddition.Id }, miscAddition));
        }
        public IHttpActionResult DeleteMiscAddition(int id)
        {
            MiscAddition miscAddition = db.MiscAdditions.Find(id);

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

            db.MiscAdditions.Remove(miscAddition);
            db.SaveChanges();

            return(Ok(miscAddition));
        }