Exemple #1
0
        // GET: Products/Details/5
        public ActionResult Details(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var productView = localService.GetProductById(id);

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