Example #1
0
 public GetOrderResponse GetOrder(GetOrderRequest request)
 {
     return new GetOrderResponse()
                {
                    OrderDto = _orderManager.GetOrder(request)
                };
 }
Example #2
0
        public OrderDto GetOrder(GetOrderRequest request)
        {
            OrderDto result = null;

            AOPify.AOPify
                 .Let
                 .RegisterLogger(Log.It.For(this).Use(_logger))
                 .Log(string.Format("START :Order GetOrder op started Type: {0}, Method:{1}", GetType().Name, MethodBase.GetCurrentMethod().Name),
                         string.Format("END :Order GetOrder op ended Type: {0}, Method:{1} , OrderID :{2}", GetType().Name, MethodBase.GetCurrentMethod().Name, request.OrderID))
                 .Run(() => result = _orderRepository.Find(request.OrderID).ToOrderDto());
            return result;
        }