public ActionResult Edit(MdlAsset Wmodel) { if (sig != null) { try { // TODO: Add update logic here mobj = new MngInfo(); Wmodel.ModifyByUser_ID = sig.UserID; mobj.UpdateAssetofOrg(Wmodel); return(RedirectToAction("Index")); } catch { return(View()); } } else { return(RedirectToAction("Index", "Login")); } }