public HttpResponseMessage ProductsDropDownList([FromUri] GetProductsDropDownList getProductsDw) { getProductsDw = new GetProductsDropDownList(); var result = _processor.Get(getProductsDw); return(Request.CreateResponse(HttpStatusCode.OK, result)); }
public IReadOnlyList <ProductDropDownItem> Handle(GetProductsDropDownList query) { return(_architectureContext.Products.Select(_ => new ProductDropDownItem { Id = _.Id, Name = _.Name }).ToList()); }