// GET: /Editora/ public ActionResult Index() { var model = new EditoraViewModel { Editoras = EditoraBO.GetAllActive<Editora>().OrderBy(x => x.Nome).ToList() }; return View(model); }
public ActionResult Create(EditoraViewModel model) { EditoraBO.Save<Editora>(model.Editora); return RedirectToAction("Index"); }