public IHttpActionResult PutForumReplies(int id, ForumReplies forumReplies)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostForumReplies(ForumReplies forumReplies)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.ForumReplies.Add(forumReplies);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = forumReplies.id }, forumReplies);
        }