Example #1
0
        public async Task <IActionResult> UpdateScheduleTaskHistory(int id, [FromBody] ScheduleTaskHistoryDTO scheduleTaskHistoryDTO)
        {
            var scheduleTaskHistory = scheduleTaskHistoryDTO.ToEntity();
            await _scheduleTaskHistoryService.UpdateScheduleTaskHistory(scheduleTaskHistory);

            return(Ok(scheduleTaskHistory));
        }
Example #2
0
        public async Task <IActionResult> CreateScheduleTaskHistory(ScheduleTaskHistoryDTO scheduleTaskHistoryDTO)
        {
            var scheduleTaskHistory = scheduleTaskHistoryDTO.ToEntity();
            await _scheduleTaskHistoryService.CreateScheduleTaskHistory(scheduleTaskHistory);

            return(Ok(scheduleTaskHistory));
        }