Ejemplo n.º 1
0
		public GetCustomerResponse GetCustomer(GetCustomerRequest getCustomerRequest)
		{
			GetCustomerResponse getCustomerResponse = new GetCustomerResponse();
			Customer customer = null;
			try
			{
				customer = _customerRepository.FindBy(getCustomerRequest.Id);
				if (customer == null)
				{
					getCustomerResponse.Exception = GetStandardCustomerNotFoundException();
				}
				else
				{
					getCustomerResponse.Customer = customer.ConvertToViewModel();
				}
			}
			catch (Exception ex)
			{
				getCustomerResponse.Exception = ex;
			}
			return getCustomerResponse;
		}
		public GetCustomerResponse GetCustomer(GetCustomerRequest getCustomerRequest)
		{
			return _innerCustomerService.GetCustomer(getCustomerRequest);
		}