public IActionResult Upsert() { int status; if (ModelState.IsValid) { status = _CustomerTypeService.SaveCustomerType(CustomerType); return(RedirectToAction("ListCustomerType")); } return(View("Upsert")); }