public ActionResult <IEnumerable <string> > Get() { var dbContext = new RevingposContext(); var brands = dbContext.Brands.ToList(); // foreach (var brand in brands) // { // } return(new JsonResult(brands)); }
public ProductsRepository(RevingposContext context) { _context = context; }
public ProductsController(RevingposContext context, IProductsRepository productsRepository) { _context = context; _productsRepository = productsRepository; }