/// <summary> /// 获取所有商品 /// </summary> /// <returns>所有商品</returns> public List <Product> GetProduct() { var products = new List <Product>(); try { products = dal.GetProduct(); } catch (Exception ex) { } return(products); }