public async Task <IActionResult> CreateLichSuChiTietCongViec(LichSuChiTietCongViecDTO lichSuChiTietCongViecDTO)
        {
            var lichSuChiTietCongViec = lichSuChiTietCongViecDTO.ToEntity();
            await _lichSuChiTietCongViecService.CreateLichSuChiTietCongViec(lichSuChiTietCongViec);

            return(Ok(lichSuChiTietCongViec));
        }
        public async Task <IActionResult> UpdateLichSuChiTietCongViec(int id, [FromBody] LichSuChiTietCongViecDTO lichSuChiTietCongViecDTO)
        {
            var lichSuChiTietCongViec = lichSuChiTietCongViecDTO.ToEntity();
            await _lichSuChiTietCongViecService.UpdateLichSuChiTietCongViec(lichSuChiTietCongViec);

            return(Ok(lichSuChiTietCongViec));
        }
        public async Task <IActionResult> GetLichSuChiTietCongViecById(int id)
        {
            var lichSuChiTietCongViec = await _lichSuChiTietCongViecService.GetLichSuChiTietCongViecById(id);

            var result = LichSuChiTietCongViecDTO.FromEntity(lichSuChiTietCongViec);

            return(Ok(result));
        }