public ActionResult Create(Customer model) { try { if (ModelState.IsValid) { string Msg; string confirmMsg = "Customer Save sucessfully"; //string showMsg = "Insert Customer Successfully!"; bool response = _customService.CreateMyCustomer(model, out Msg); if (response) { ModelState.Clear(); if (Msg == "NOERROR") { ViewBag.msgShow = confirmMsg; } } return(View()); } return(View(model)); //return RedirectToAction("Index"); } catch { return(View()); } }