public ActionResult Create(Writer writer)
        {
            if (ModelState.IsValid)
            {
                db.Writers.Add(writer);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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