Ejemplo n.º 1
0
        public async Task <IActionResult> UpdateLinhVucThi(int id, [FromBody] LinhVucThiDTO linhVucThiDTO)
        {
            var linhVucThi = linhVucThiDTO.ToEntity();
            await _linhVucThiService.UpdateLinhVucThi(linhVucThi);

            return(Ok(linhVucThi));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> CreateLinhVucThi(LinhVucThiDTO linhVucThiDTO)
        {
            var linhVucThi = linhVucThiDTO.ToEntity();
            await _linhVucThiService.CreateLinhVucThi(linhVucThi);

            return(Ok(linhVucThi));
        }