public ActionResult Create(Software software) { if (ModelState.IsValid) { AssetService assetService = new AssetService(); int result = assetService.AddSoftwareAsset(software); if (result > 0) { ModelState.Clear(); ViewBag.Msg = "Asset saved successfully"; } } //return RedirectToAction("Create", "Software"); return(View()); }