public IEnumerable <Products> GetProducts() { try { IEnumerable <Products> _Products = iProductsDAO.GetProducts(); return(_Products); } catch (Exception e) { throw new Exception(); } }
public IList <Products> GetProducts() { return(_dao.GetProducts()); }