public ActionResult HomeResources(HomeResources aData) { int rowAffected = aFamilyManager.SaveHomeResources(aData); string messages = "Successfully Saved " + rowAffected; return(RedirectToAction("HomeResources", "HomeResources", new { id = aData.BasicInformationOfAffectedPersonNid, message = messages })); }
public ActionResult Dependency(List <HomeResources> data) { foreach (var aData in data) { aFamilyManager.SaveHomeResources(aData); } return(View()); }