public ActionResult Create(FormCollection collection)
 {
     var a = new Author();
     if(TryUpdateModel(a))
     {
         authorRepository.Insert(a);
         if(authorRepository.Commit())
         {
             return RedirectToAction("Index");
         }
         ModelState.AddModelError("db",authorRepository.Errors);
     }
     return RedirectToAction("Create", a);
 }
 public ActionResult Create()
 {
     var a = new Author();
     return View(a);
 }