private Reginfo GetConvertedReginfoModel(Reginfo aReginfo) { Base64Conversion base64Conversion = new Base64Conversion(); if (!string.IsNullOrEmpty(aReginfo.FatherName) && !base64Conversion.IsLetterEnglish(aReginfo.FatherName)) { aReginfo.FatherName = base64Conversion.EncodeBase64(aReginfo.FatherName); } if (!string.IsNullOrEmpty(aReginfo.MotherName) && !base64Conversion.IsLetterEnglish(aReginfo.MotherName)) { aReginfo.MotherName = base64Conversion.EncodeBase64(aReginfo.MotherName); } if (!string.IsNullOrEmpty(aReginfo.SpouseName) && !base64Conversion.IsLetterEnglish(aReginfo.SpouseName)) { aReginfo.SpouseName = base64Conversion.EncodeBase64(aReginfo.SpouseName); } if (!string.IsNullOrEmpty(aReginfo.PerAddr) && !base64Conversion.IsLetterEnglish(aReginfo.PerAddr)) { aReginfo.PerAddr = base64Conversion.EncodeBase64(aReginfo.PerAddr); } if (!string.IsNullOrEmpty(aReginfo.PreAddr) && !base64Conversion.IsLetterEnglish(aReginfo.PreAddr)) { aReginfo.PreAddr = base64Conversion.EncodeBase64(aReginfo.PreAddr); } return(aReginfo); }
private Reginfo GetConvertedReginfoModel(Reginfo aReginfo) { Base64Conversion base64Conversion = new Base64Conversion(); if (!string.IsNullOrEmpty(aReginfo.FatherName) && !base64Conversion.IsLetterEnglish(aReginfo.FatherName)) { aReginfo.FatherName = base64Conversion.EncodeBase64(aReginfo.FatherName); } if (!string.IsNullOrEmpty(aReginfo.MotherName) && !base64Conversion.IsLetterEnglish(aReginfo.MotherName)) { aReginfo.MotherName = base64Conversion.EncodeBase64(aReginfo.MotherName); } if (!string.IsNullOrEmpty(aReginfo.SpouseName) && !base64Conversion.IsLetterEnglish(aReginfo.SpouseName)) { aReginfo.SpouseName = base64Conversion.EncodeBase64(aReginfo.SpouseName); } if (!string.IsNullOrEmpty(aReginfo.PerAddr) && !base64Conversion.IsLetterEnglish(aReginfo.PerAddr)) { aReginfo.PerAddr = base64Conversion.EncodeBase64(aReginfo.PerAddr); } if (!string.IsNullOrEmpty(aReginfo.PreAddr) && !base64Conversion.IsLetterEnglish(aReginfo.PreAddr)) { aReginfo.PreAddr = base64Conversion.EncodeBase64(aReginfo.PreAddr); } aReginfo.PhotoId = aReginfo.PhotoId.Trim(); //if (!string.IsNullOrEmpty(aReginfo._FatherNameBangla) && !base64Conversion.IsLetterEnglish(aReginfo._FatherNameBangla)) //{ // aReginfo._FatherNameBangla = base64Conversion.EncodeBase64(aReginfo._FatherNameBangla); //} //if (!string.IsNullOrEmpty(aReginfo._MotherNameBangla) && !base64Conversion.IsLetterEnglish(aReginfo._MotherNameBangla)) //{ // aReginfo._MotherNameBangla = base64Conversion.EncodeBase64(aReginfo._MotherNameBangla); //} //if (!string.IsNullOrEmpty(aReginfo._SpouseNameBangla) && !base64Conversion.IsLetterEnglish(aReginfo._SpouseNameBangla)) //{ // aReginfo._SpouseNameBangla = base64Conversion.EncodeBase64(aReginfo._SpouseNameBangla); //} //if (!string.IsNullOrEmpty(aReginfo._PerAddrBangla) && !base64Conversion.IsLetterEnglish(aReginfo._PerAddrBangla)) //{ // aReginfo._PerAddrBangla = base64Conversion.EncodeBase64(aReginfo._PerAddrBangla); //} //if (!string.IsNullOrEmpty(aReginfo._PreAddrBangla) && !base64Conversion.IsLetterEnglish(aReginfo._PreAddrBangla)) //{ // aReginfo._PreAddrBangla = base64Conversion.EncodeBase64(aReginfo._PreAddrBangla); //} return(aReginfo); }