/// <summary> /// 获取产品分类 /// </summary> public Category GetCategoryByID(string categoryid) { var dal = new ProductsDAL(); DataTable dt = dal.GetCategoryByID(categoryid); Category model = new Category(); if (dt.Rows.Count > 0) { model.FillData(dt.Rows[0]); } return model; }