public async Task <IActionResult> UpdateNguonDeThi(int id, [FromBody] NguonDeThiDTO nguonDeThiDTO) { var nguonDeThi = nguonDeThiDTO.ToEntity(); await _nguonDeThiService.UpdateNguonDeThi(nguonDeThi); return(Ok(nguonDeThi)); }
public async Task <IActionResult> CreateNguonDeThi(NguonDeThiDTO nguonDeThiDTO) { var nguonDeThi = nguonDeThiDTO.ToEntity(); await _nguonDeThiService.CreateNguonDeThi(nguonDeThi); return(Ok(nguonDeThi)); }