Enum.Parse()

Enum的字串比對 然後回傳Enum的Value

CurrencyID = (int)Enum.Parse(typeof(NetBank.Models.Payments.CurrencyType), data.CurrencyIdString)