Beispiel #1
0
        public async Task <SettingsAutomatedGetRes> GetAutomatedSalesPipelineRoles(SettingsAutomatedGetReq request, string ticket)
        {
            SettingsAutomatedGetRes objSettingsAutomatedGetRes = new SettingsAutomatedGetRes();

            objSettingsAutomatedGetRes = await serviceProxy.PostData(_configuration.GetValue <string>("AgentService:GetAutomatedSalesPipelineRoles"), request, typeof(SettingsAutomatedGetRes), ticket);

            return(objSettingsAutomatedGetRes);
        }
Beispiel #2
0
        public async Task <SettingsAutomatedGetRes> GetAutomatedSalesPipelineRoles([FromBody] SettingsAutomatedGetReq request)
        {
            var response = new SettingsAutomatedGetRes();

            try
            {
                response = await _settingsRepository.GetAutomatedSalesPipelineRoles(request);

                response.ResponseStatus.Status       = "Success";
                response.ResponseStatus.ErrorMessage = response != null ? "" : "No Records Found.";
            }
            catch (Exception ex)
            {
                response.ResponseStatus.Status       = "Failure";
                response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message;
            }

            return(response);
        }