Beispiel #1
0
        private CustomerLevelView GetCustomerLevelView(string id)
        {
            GetRequest request = new GetRequest();

            request.ID = Guid.Parse(id);

            GetCustomerLevelResponse response = this._customerLevelService.GetCustomerLevel(request);

            return(response.CustomerLevelView);
        }
        public GetCustomerLevelResponse GetCustomerLevel(GetRequest request)
        {
            GetCustomerLevelResponse response = new GetCustomerLevelResponse();

            try
            {
                CustomerLevel     customerLevel     = new CustomerLevel();
                CustomerLevelView customerLevelView = customerLevel.ConvertToCustomerLevelView();

                customerLevel = _customerLevelRepository.FindBy(request.ID);
                if (customerLevel != null)
                {
                    customerLevelView = customerLevel.ConvertToCustomerLevelView();
                }

                response.CustomerLevelView = customerLevelView;
            }
            catch (Exception ex)
            {
            }

            return(response);
        }