Ejemplo n.º 1
0
        public string SaveAppId()
        {
            string status = string.Empty;

            try
            {
                MVCService.AddMember addMemberData = new MVCService.AddMember();
                AddMember            addMember     = (AddMember)Session["MemberSave"];
                addMemberData.FirstName = addMember.FirstName;
                addMemberData.LastName  = addMember.LastName;
                if (addMember.MiddleName != null)
                {
                    addMemberData.MiddleName = addMember.MiddleName;
                }
                addMemberData.Suffix                = addMember.Suffix;
                addMemberData.Gender                = addMember.Gender;
                addMemberData.DateOfBirth           = addMember.DateOfBirth;
                addMemberData.CreatedTimeStamp      = DateTime.Now;
                addMemberData.LastModifiedTimeStamp = DateTime.Now;
                addMemberData.MetaActive            = 1;
                addMemberData.ApplicationID         = addMember.ApplicationID;
                status = mVCYorbitService.SaveAppId(addMemberData);
            }
            catch (Exception ex)
            {
                MVCYorbit.LOG.Logging(ex.Message);
            }
            return(status);
        }
Ejemplo n.º 2
0
        public bool AddMemberEdit()
        {
            AddMember addMember = (AddMember)Session["MemberEdit"];

            MVCService.AddMember addMemberData = new MVCService.AddMember
            {
                ID        = addMember.ID,
                FirstName = addMember.FirstName,
                LastName  = addMember.LastName
            };
            if (addMember.MiddleName != null)
            {
                addMemberData.MiddleName = addMember.MiddleName;
            }
            addMemberData.Suffix                = addMember.Suffix;
            addMemberData.Gender                = addMember.Gender;
            addMemberData.DateOfBirth           = addMember.DateOfBirth;
            addMemberData.CreatedTimeStamp      = DateTime.Now;
            addMemberData.LastModifiedTimeStamp = DateTime.Now;
            addMemberData.MetaActive            = 1;

            bool status = mVCYorbitService.EditMember(addMemberData);

            return(status);
        }