public ActionResult Create(GalleryCreate gallery) { if (!ModelState.IsValid) { return(View(gallery)); } IGalleryDAC dac = new GalleryDAC(); dac.Add(gallery.Name, gallery.Description, gallery.SortOrder); return(RedirectToAction("Index")); }