public IActionResult GetAll() { var db = new makeupDBContext(); var prods = db.Products; return(Ok(prods)); }
public IActionResult Index() { var x = new makeupDBContext(); var prods = x.Products.ToList(); return(View()); }
public IActionResult GetAll() { var db = new makeupDBContext(); var prods = db.Products; return(Ok(prods)); }
public IActionResult Index() { var x = new makeupDBContext(); var prods = x.Products.ToList(); return(View()); }