Ejemplo n.º 1
0
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Product product = _productManger.GetBy(id);

            if (product == null)
            {
                return(HttpNotFound());
            }
            return(View(product));
        }