Пример #1
0
        public OrderResponse CreateOrderResponse(Order order)
        {
            var provider = ProviderRepository.GetBy(x => x.Creator.Id != order.Creator.Id).First();

            return(new OrderResponse
            {
                Comment = "Comment",
                Completed = false,
                CreatedAt = DateTime.Now,
                Order = order,
                Provider = provider,
                Creator = provider.Creator
            });
        }