Esempio n. 1
0
 public ActionResult GetProductList()
 {
     _productFacade = new ProductFacade();
     return(Json(new
     {
         IsSuccess = true,
         Products = _productFacade.GetProductList().Select(p => new
         {
             p.ProductId,
             p.ProductName
         }).ToList(),
     }));
 }