public ActionResult Create(EmpModels model) { if (ModelState.IsValid) { int id = emp.AddEmploye(model); if (id > 0) { ModelState.Clear(); ViewBag.Issuccess = "Data Added"; } } return(View()); }