Ejemplo n.º 1
0
        public ActionResult AddDependentPersion()
        {
            SetupMemberDependentModelRel obj = new SetupMemberDependentModelRel();

            //obj.lstOfDependentModelRel = new List<SetupMemberDependentModelRel>();

            return(PartialView("AddDependentPersion"));
        }
Ejemplo n.º 2
0
        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));
        }