public ActionResult ConsumerCreate(ConsumerCreate model) { if (!ModelState.IsValid) { return(View(model)); } var service = new ConsumerService(); if (service.ConsumerCreate(model)) { TempData["SaveResult"] = "The Consumer was created."; return(RedirectToAction("Index")); } ; ModelState.AddModelError("", "The Consumer could not be created."); return(View(model)); }