예제 #1
0
        // GET: Role/Edit/5
        public ActionResult Edit(int id)
        {
            RoleBLL Role;

            try
            {
                using (ContextBll ctx = new ContextBll())
                {
                    Role = ctx.FindRoleByID(id);
                    if (null == Role)
                    {
                        return(View("ItemNotFound")); // BKW make this view
                    }
                }
            }
            catch (Exception ex)
            {
                ViewBag.Exception = ex;
                return(View("Error"));
            }
            return(View(Role));
        }