public IActionResult Create(Data.Entity.Camp model) { if (ModelState.IsValid) { Svc.CreateCamp(model); Svc.Commit(); return(RedirectToAction("Index")); } ViewBag.Categories = new SelectList(Svc.CampCategories.Items, "Id", "Name", model.CampCategoryId); return(View(model)); }