//GET /Index public ActionResult Index() { var model = new AutorViewModel { Autores = AutorBO.GetAllActive<Autor>().OrderBy(x => x.Nome).ToList() }; return View(model); }
public ActionResult Create(AutorViewModel model) { AutorBO.Save<Autor>(model.Autor); return RedirectToAction("Index"); }