Ejemplo n.º 1
0
        public IActionResult GetAll()
        {
            var db    = new makeupDBContext();
            var prods = db.Products;

            return(Ok(prods));
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            var x = new makeupDBContext();

            var prods = x.Products.ToList();

            return(View());
        }