예제 #1
0
        public async Task <IActionResult> UpdateNguonDeThi(int id, [FromBody] NguonDeThiDTO nguonDeThiDTO)
        {
            var nguonDeThi = nguonDeThiDTO.ToEntity();
            await _nguonDeThiService.UpdateNguonDeThi(nguonDeThi);

            return(Ok(nguonDeThi));
        }
예제 #2
0
        public async Task <IActionResult> CreateNguonDeThi(NguonDeThiDTO nguonDeThiDTO)
        {
            var nguonDeThi = nguonDeThiDTO.ToEntity();
            await _nguonDeThiService.CreateNguonDeThi(nguonDeThi);

            return(Ok(nguonDeThi));
        }