/// <summary>
        /// 修改员工(调职)
        /// </summary>
        /// <param name="emp"></param>
        /// <returns></returns>
        public int UpdateEmp(Emp emp)
        {
            var s = dal.GetAllEmp().Where(c => c.Id == emp.Id).FirstOrDefault();

            s.DepartmentsId = emp.DepartmentsId;
            s.Eduty         = emp.Eduty;
            s.Ename         = emp.Ename;
            return(dal.UpdateEmp(s));
        }