/// <summary> /// 删除员工 /// </summary> /// <returns></returns> public DelStaffResponse DelStaff(DelStaffRequest request) { DelStaffResponse response = new DelStaffResponse(); var res = dal.DelteStaff(request.id); if (res > 0) { response.IsRegistSuccess = true; response.Message = "删除成功"; } else { response.Status = false; response.Message = "删除失败"; return(response); } return(response); }