예제 #1
0
        public HttpResponseMessage ProductsDropDownList([FromUri] GetProductsDropDownList getProductsDw)
        {
            getProductsDw = new GetProductsDropDownList();
            var result = _processor.Get(getProductsDw);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
예제 #2
0
 public IReadOnlyList <ProductDropDownItem> Handle(GetProductsDropDownList query)
 {
     return(_architectureContext.Products.Select(_ => new ProductDropDownItem
     {
         Id = _.Id,
         Name = _.Name
     }).ToList());
 }