public ActionResult Details(int id) { //var Proxy = new Proxy(); var Proxy = new BLL.Product(); var Model = Proxy.RetrieveById(id); return(View(Model)); }
public ActionResult CUD(int id = 0) { var Proxy = new BLL.Product(); var Model = new Products(); if (id != 0) { Model = Proxy.RetrieveById(id); } return(View(Model)); }