public ActionResult Create(Hardware hardware) { if (ModelState.IsValid) { AssetService assetService = new AssetService(); int result = assetService.AddHardwareAsset(hardware); if (result > 0) { ModelState.Clear(); ViewBag.Msg = "Asset saved successfully"; //TempData["savemsg"] = "Asset saved successfully"; } } return(View()); // return RedirectToAction("Hardwares", "Hardware"); }