public ActionResult Create(Area area) { if (ModelState.IsValid) { _areaRepository.Add(area); _areaRepository.Commit(); return RedirectToAction("Index"); } return View(area); }
// ************************** // URL: /Manager/Area/Create/ // ************************** public ActionResult Create() { var area = new Area(); return View(area); }