public ActionResult <List <Brand> > Index()
        {
            BrandDAO     dao       = new BrandDAO(_db);
            List <Brand> allBrands = dao.GetAll();

            return(allBrands);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 获取所有实例
 /// </summary>
 /// <returns></returns>
 public BrandEntity[] GetAll()
 {
     return(_currentDAO.GetAll());
 }
Ejemplo n.º 4
0
 public List <Brand> GetAll()
 {
     return(brandDAO.GetAll());
 }