예제 #1
0
        //GET /Index
        public ActionResult Index()
        {
            var model = new AutorViewModel {
                Autores = AutorBO.GetAllActive<Autor>().OrderBy(x => x.Nome).ToList()
            };

            return View(model);
        }
예제 #2
0
 public ActionResult Create(AutorViewModel model)
 {
     AutorBO.Save<Autor>(model.Autor);
     return RedirectToAction("Index");
 }