Example #1
0
        public ActionResult Details(int id)
        {
            //var Proxy = new Proxy();
            var Proxy = new BLL.Product();
            var Model = Proxy.RetrieveById(id);

            return(View(Model));
        }
Example #2
0
        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));
        }