public async Task<IHttpActionResult> PutPost(int id, PostModel post)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

            //Update Customer in the Database
            var dbPost = db.Posts.Find(id);

            //Update the Database
            dbPost.Update(post);

            //Modified State
            db.Entry(post).State = EntityState.Modified;

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!PostExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> DeletePost(int id)
        {
            //Locate Post from Database 
            Post post = await db.Posts.FindAsync(id);
            if (post == null)
            {
                return NotFound();
            }


            db.Posts.Remove(post);
            await db.SaveChangesAsync();

            var postModel = new PostModel
            {
                UserId = post.UserId,
                PostId = post.PostId,
                PostTitle = post.PostTitle,
                PostContent = post.PostContent,
                PostDate = post.PostDate
            };

            return Ok(postModel);
        }
        public async Task<IHttpActionResult> PostPost(PostModel post)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }
            //Build New Post
            var dbPost = new Post();

            //Update User with new Post model
            dbPost.Update(post);

            //Add Post Model to DB
            db.Posts.Add(dbPost);

            post.PostId = dbPost.PostId;

            await db.SaveChangesAsync();

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