コード例 #1
0
        public ActionResult EditEmployee(Employee employee)
        {
            bool res;

            using (DBAgent.DBAgent agent = new DBAgent.DBAgent())
            {
                res = agent.EditEmployee(employee);
            }
            if (res)
            {
                return(Redirect("/Home/Employees"));
            }
            else
            {
                return(View("~/Views/Shared/Error.cshtml"));
            }
        }