public ActionResult DomesticImmovableAssets(List <DomesticImmovableAssets> data) { long nid = 0; foreach (var aData in data) { aFamilyManager.SaveDomesticImmovableAssets(aData); nid = Convert.ToInt64(aData.BasicInformationOfAffectedPersonNid); } // return View(); return(RedirectToAction("DomesticMovableAssets", "DomesticMovableAssets", new { id = nid })); }