public static string EnglishToBase64(string input) { if (!input.IsNumber()) { throw new FormatException(Messages.InvalidNumberFormatException); } return(ConvertService.EnglishToBase64(input)); }
public static Decimal PersianToEnglishDecimal(string input) { if (!input.IsNumber()) { throw new FormatException(Messages.InvalidNumberFormatException); } input = input.NormalizeNumber(); return(ConvertService.PersianToEnglishDecimal(input)); }
public static long PersianToEnglishInt64(string input) { if (!input.IsNumber()) { throw new FormatException(Messages.InvalidNumberFormatException); } input = input.NormalizeNumber(); if (!input.IsInteger()) { throw new FormatException(Messages.InvalidNumberFormatException); } return(ConvertService.PersianToEnglishInt64(input)); }
public static string EnglishToPersian(string input) { return(ConvertService.EnglishToPersian(input)); }
public static string PersianToEnglish(string input) { return(ConvertService.PersianToEnglish(input)); }
public static string Base64ToEnglish(string base64) { return(ConvertService.Base64ToEnglish(base64)); }
public static string Base64ToPersian(string base64) { return(ConvertService.Base64ToPersian(base64)); }