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

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

            return(Ok(linhVucThi));
        }