Ejemplo n.º 1
0
        public virtual ActionResult Index(CatalogCreateModel c)
        {
            ViewData["create"] = c;
            if (!ModelState.IsValid)
            {
                return(View(Catalogs.All()));
            }

            var x = c.CreateCatalog();

            try
            {
                Catalogs.Save(x);
                return(this.RedirectToAction(d => d.Edit(x.Document.Id)));
            }
            catch (Exception ex)
            {
                Notifier.Notify(ex);
                return(View(Catalogs.All()));
            }
        }
Ejemplo n.º 2
0
 public virtual ActionResult Index()
 {
     return(View(Catalogs.All()));
 }