Exemplo n.º 1
0
        /// <summary>
        /// Get details of category
        /// </summary>
        /// <param name="id">id of category</param>
        /// <returns></returns>
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            DetailCategoryViewModel category = categoryService.GetDetailCategory((int)id);

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