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()));
            }
        }
        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());
            }
        }