public ActionResult CreateFunction(tbl_MCE_Function MCE_Function) { _function.AddFunction(MCE_Function); TempData["Success"] = "Data Inserted Successfully"; ModelState.Clear(); return(View()); }