public ActionResult <List <Brand> > Index() { BrandDAO dao = new BrandDAO(_db); List <Brand> allBrands = dao.GetAll(); return(allBrands); }
public ActionResult <List <Brand> > Index() { BrandDAO dao = new BrandDAO(_db); List <Brand> allBrands = dao.GetAll(); Console.WriteLine("in here"); Console.WriteLine(allBrands.Count); return(allBrands); }
/// <summary> /// 获取所有实例 /// </summary> /// <returns></returns> public BrandEntity[] GetAll() { return(_currentDAO.GetAll()); }
public List <Brand> GetAll() { return(brandDAO.GetAll()); }