public void TrimData()
        {
            if (Name == null)
            {
                Name = "";
            }

            if (Password == null)
            {
                Password = "";
            }

            if (EmailId == null)
            {
                EmailId = "";
            }

            if (MobileNo == null)
            {
                MobileNo = "";
            }

            if (DateFormat == null)
            {
                DateFormat = "";
            }

            if (AmountFormat == null)
            {
                AmountFormat = "";
            }

            if (Remarks == null)
            {
                Remarks = "";
            }


            MobileAppToken = MobileAppToken == null ? "" : MobileAppToken.Trim();

            Name     = Name.Trim();
            Password = Password.Trim();
            EmailId  = EmailId.Trim().ToLower();
            MobileNo = MobileNo.Trim().ToUpper();

            if (DateFormat == "")
            {
                DateFormat = "MMM dd, yyyy";
            }

            if (PageSize <= 0)
            {
                PageSize = 10;
            }

            if (AmountFormat == "")
            {
                AmountFormat = "0.00";
            }
        }
Beispiel #2
0
        public void TrimData()
        {
            if (Name == null)
            {
                Name = "";
            }

            if (EmailId == null)
            {
                EmailId = "";
            }

            if (EncryptedEmailId == null)
            {
                EncryptedEmailId = "";
            }

            if (MobileNo == null)
            {
                MobileNo = "";
            }

            if (EncryptedMobileNo == null)
            {
                EncryptedMobileNo = "";
            }

            if (LoginPassword == null)
            {
                LoginPassword = "";
            }

            if (EncryptedLoginPassword == null)
            {
                EncryptedLoginPassword = "";
            }

            if (PasswordResetToken == null)
            {
                PasswordResetToken = "";
            }

            if (Remarks == null)
            {
                Remarks = "";
            }


            Name              = Name.Trim();
            EmailId           = EmailId.Trim();
            EncryptedEmailId  = EncryptedEmailId.Trim();
            MobileNo          = MobileNo.Trim();
            EncryptedMobileNo = EncryptedMobileNo.Trim();

            LoginPassword          = LoginPassword.Trim();
            EncryptedLoginPassword = EncryptedLoginPassword.Trim();

            PasswordResetToken = PasswordResetToken.Trim();
            Remarks            = Remarks.Trim();
        }
        public void TrimData()
        {
            if (Name == null)
            {
                Name = "";
            }

            if (EmailId == null)
            {
                EmailId = "";
            }

            if (MobileNo == null)
            {
                MobileNo = "";
            }

            Name     = Name.Trim();
            EmailId  = EmailId.Trim();
            MobileNo = MobileNo.Trim();
        }