コード例 #1
0
        // GET: Items/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(RedirectToAction("Error", "Home"));
            }
            Customer Customer = _customerBll.GetById(id);

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