public ActionResult Create(EditSpeakerModel model)
 {
     if (ModelState.IsValid)
     {
         var speaker = new Speaker();
         model.MapTo(speaker);
         _repository.Add(speaker);
         _repository.SaveAllChanges();
         return RedirectToAction("Index");
     }
     return View(model);
 }
 public ActionResult Edit(int id, EditSpeakerModel model)
 {
     if (ModelState.IsValid)
     {
         var speaker = GetSpeaker(id);
         model.MapTo(speaker);
         _repository.SaveAllChanges();
         return RedirectToAction("Index");
     }
     return View(model);
 }