public async Task <IActionResult> CreateChiTietBaiThi(ChiTietBaiThiDTO chiTietBaiThiDTO)
        {
            var chiTietBaiThi = chiTietBaiThiDTO.ToEntity();
            await _chiTietBaiThiService.CreateChiTietBaiThi(chiTietBaiThi);

            return(Ok(chiTietBaiThi));
        }
        public async Task <IActionResult> UpdateChiTietBaiThi(int id, [FromBody] ChiTietBaiThiDTO chiTietBaiThiDTO)
        {
            var chiTietBaiThi = chiTietBaiThiDTO.ToEntity();
            await _chiTietBaiThiService.UpdateChiTietBaiThi(chiTietBaiThi);

            return(Ok(chiTietBaiThi));
        }
        public async Task <IActionResult> GetChiTietBaiThiById(int id)
        {
            var chiTietBaiThi = await _chiTietBaiThiService.GetChiTietBaiThiById(id);

            var result = ChiTietBaiThiDTO.FromEntity(chiTietBaiThi);

            return(Ok(result));
        }