コード例 #1
0
        public ActionResult <List <ProductReview> > GetAll()
        {
            List <ProductReview> reviews = dao.GetAll();

            // Return 200 OK
            return(Ok(reviews));
        }
コード例 #2
0
        public System.Collections.IList GetAll()
        {
            Check.Require(_IsInitialized, "The class is not initialized yet.");

            foreach (EntitySecurityBase checker in this.SecurityCheckers)
            {
                checker.GetAll();
            }

            return(DataAccessObject.GetAll());
        }
コード例 #3
0
        public ActionResult <List <Item> > GetAll()
        {
            List <Item> items = dao.GetAll();

            return(Ok(items));
        }