예제 #1
0
        //Update Item  [Get Request]
        public ActionResult Update(int?id)
        {
            if (id == null)
            {
                return(RedirectToAction("Error", "Home"));
            }

            Item Item = itemBll.GetById(id);

            if (Item == null)
            {
                return(RedirectToAction("Error", "Home", null));
            }

            ViewBag.ItemCategoryId = dropDown.GetAllItemCategoryById(id);
            return(View(Item));
        }