public ActionResult AddDependentPersion() { SetupMemberDependentModelRel obj = new SetupMemberDependentModelRel(); //obj.lstOfDependentModelRel = new List<SetupMemberDependentModelRel>(); return(PartialView("AddDependentPersion")); }
public ActionResult Create(int Id, string FirstName, int MembertypeId, int MaxDepend, int DueDepend) { SetupMemberDependentModel model = new SetupMemberDependentModel(); model.refSetUpMemberShipModel = new SetUpMemberShipModel(); model.refSetUpMemberShipModel.FirstName = FirstName; model.SetupMemberID = Id; model.MemberTypeID = MembertypeId; if (DueDepend != 0) { for (int i = 1; i <= DueDepend; i++) { var mod = new SetupMemberDependentModelRel(); model.lstOfDependentModelRel.Add(mod); } } return(View(model)); }