public MessageModel <EditCurrencyInfoDTO> AddCurrencyInfo(AddCurrencyCodeRequest request)
        {
            CurrencyCode currency = new CurrencyCode
            {
                CurrencyName = request.CurrencyName,
                Country      = request.Country,
                Fee          = request.Fee,
                FeeType      = (byte)request.FeeType
            };
            bool result = currencyService.AddCurrency(currency);
            EditCurrencyInfoDTO currencyDTO = mapper.Map <EditCurrencyInfoDTO>(currency);

            return(new MessageModel <EditCurrencyInfoDTO>
            {
                Success = result,
                Msg = result ? "" : "Add Fail",
                Data = currencyDTO
            });
        }
        public MessageModel <EditCurrencyInfoDTO> ModifyCurrencyInfo([FromRoute, SwaggerParameter("id,可從/currency取得", Required = true)] int id, [FromBody] ModifyCurrencyCodeRequest request)
        {
            CurrencyCode currency = new CurrencyCode
            {
                Id           = id,
                CurrencyName = request.CurrencyName,
                Country      = request.Country,
                Fee          = request.Fee,
                FeeType      = (byte)request.FeeType
            };
            bool result = currencyService.ModifyCurrency(currency);
            EditCurrencyInfoDTO currencyDTO = mapper.Map <EditCurrencyInfoDTO>(currency);

            return(new MessageModel <EditCurrencyInfoDTO>
            {
                Success = result,
                Msg = result ? "" : "Modify Fail",
                Data = currencyDTO
            });
        }