Esempio n. 1
0
        /// <summary>
        /// 代课
        /// </summary>
        /// <param name="subEmployeeId">课程id</param>
        /// <param name="subEmployeeId">代课员工id</param>
        /// <param name="startTime">起始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <returns></returns>
        public bool SubstituteCourseSchedule(int courseScheduleId, int subEmployeeId, string startTime, string endTime)
        {
            var result = false;

            if (!string.IsNullOrEmpty(startTime) && !string.IsNullOrEmpty(endTime))
            {
                var dtStartTime = Convert.ToDateTime(startTime);
                var dtEndTime   = Convert.ToDateTime(endTime);
                result = repositoryService.SubstituteCourseSchedule(courseScheduleId, subEmployeeId, dtStartTime, dtEndTime);
            }
            return(result);
        }