public ProductModels() { db = new ShopDbContext(); }
public ActionResult GetImage(int id) { ShopDbContext db = new ShopDbContext(); Product hinhanh = db.Products.Find(id); HinhAnhResult result = new HinhAnhResult(hinhanh.Image); return result; }
public ProductCategoryModels() { db = new ShopDbContext(); }