public YieldHistoryResponse GetFundYieldHistory(YieldHistoryRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmFundBaseUrl + "/Fund/YieldHistory"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <YieldHistoryResponse, YieldHistoryRequest>(payload, url)); }
public YieldHistoryResponse GetYieldHistory(string fundcode) { var request = new YieldHistoryRequest { FundCode = fundcode, StartDate = DateTime.Now.AddYears(-1), EndDate = DateTime.Now }; var response = _clientService.GetFundYieldHistory(request); return(response); }