public object GetDistributorByMphone(string mPhone)
 {
     try
     {
         Base64Conversion base64Conversion = new Base64Conversion();
         Reginfo          reginfo          = (Reginfo)_distributorRepository.GetDistributorByMphone(mPhone);
         if (reginfo != null)
         {
             if (base64Conversion.IsBase64(reginfo.FatherName))
             {
                 reginfo.FatherName = base64Conversion.DecodeBase64(reginfo.FatherName);
             }
             if (base64Conversion.IsBase64(reginfo.MotherName))
             {
                 reginfo.MotherName = base64Conversion.DecodeBase64(reginfo.MotherName);
             }
             if (base64Conversion.IsBase64(reginfo.SpouseName))
             {
                 reginfo.SpouseName = base64Conversion.DecodeBase64(reginfo.SpouseName);
             }
             if (base64Conversion.IsBase64(reginfo.PreAddr))
             {
                 reginfo.PreAddr = base64Conversion.DecodeBase64(reginfo.PreAddr);
             }
             if (base64Conversion.IsBase64(reginfo.PerAddr))
             {
                 reginfo.PerAddr = base64Conversion.DecodeBase64(reginfo.PerAddr);
             }
             //
             if (base64Conversion.IsBase64(reginfo._FatherNameBangla))
             {
                 reginfo._FatherNameBangla = base64Conversion.DecodeBase64(reginfo._FatherNameBangla);
             }
             if (base64Conversion.IsBase64(reginfo._MotherNameBangla))
             {
                 reginfo._MotherNameBangla = base64Conversion.DecodeBase64(reginfo._MotherNameBangla);
             }
             if (base64Conversion.IsBase64(reginfo._SpouseNameBangla))
             {
                 reginfo._SpouseNameBangla = base64Conversion.DecodeBase64(reginfo._SpouseNameBangla);
             }
             if (base64Conversion.IsBase64(reginfo._PreAddrBangla))
             {
                 reginfo._PreAddrBangla = base64Conversion.DecodeBase64(reginfo._PreAddrBangla);
             }
             if (base64Conversion.IsBase64(reginfo._PerAddrBangla))
             {
                 reginfo._PerAddrBangla = base64Conversion.DecodeBase64(reginfo._PerAddrBangla);
             }
             if (reginfo.CatId == "AMBD" && reginfo.SchargePer > 0)
             {
                 double?serviceCharge = reginfo.SchargePer;
                 reginfo.SchargePer = serviceCharge * 100;
             }
         }
         return(reginfo);
     }
     catch (Exception)
     {
         throw;
     }
 }