Ejemplo n.º 1
0
        private UncreditServiceView GetUncreditServiceView(string id)
        {
            GetRequest request = new GetRequest();

            request.ID = Guid.Parse(id);

            GetUncreditServiceResponse response = this._uncreditServiceService.GetUncreditService(request);

            return(response.UncreditServiceView);
        }
Ejemplo n.º 2
0
        public GetUncreditServiceResponse GetUncreditService(GetRequest request)
        {
            GetUncreditServiceResponse response = new GetUncreditServiceResponse();

            try
            {
                UncreditService     uncreditService     = new UncreditService();
                UncreditServiceView uncreditServiceView = uncreditService.ConvertToUncreditServiceView();

                uncreditService = _uncreditServiceRepository.FindBy(request.ID);
                if (uncreditService != null)
                {
                    uncreditServiceView = uncreditService.ConvertToUncreditServiceView();
                }

                response.UncreditServiceView = uncreditServiceView;
            }
            catch (Exception ex)
            {
            }

            return(response);
        }