Ejemplo n.º 1
0
        public ActionResult Details(int id)
        {
            CategorieBLL categorie;

            try
            {
                using (ContextBll ctx = new ContextBll())
                {
                    categorie = ctx.FindCategorieByID(id);
                    if (null == categorie)
                    {
                        return(View("ItemNotFound"));
                    }
                }
            }
            catch (Exception ex)
            {
                ViewBag.Exception = ex;
                return(View("Error"));
            }
            return(View(categorie));
        }