public ActionResult Create(PostContent postcontent)
        {
            if (ModelState.IsValid)
            {
                db.PostContents.Add(postcontent);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(postcontent);
        }
 public ActionResult Edit(PostContent postcontent)
 {
     if (ModelState.IsValid)
     {
         db.Entry(postcontent).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(postcontent);
 }