public ActionResult GetProductById(string id) { Product product = new Product(); Model.EF.Product p = product.GetProductById(id); return(View("GetProductById", p)); }
public ActionResult ModalProduct(string id) { Product p = new Product(); Model.EF.Product product = p.GetProductById(id); return(PartialView("_ModalProduct", product)); }