public async Task <IHttpActionResult> DeleteRecord(int wordId) { bool result = await _recordService.DeleteRecordAsync(wordId); if (result) { return(Ok()); } else { return(BadRequest()); } }