[HttpDelete("{id:int}")] // @DeleteMapping
        public async Task <IActionResult> DeleteAsync(int id)
        {
            try
            {
                await _repository.DeleteMachineTypeAsync(id);

                return(NoContent()); // 204 NoContent
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message);
                return(BadRequest("삭제할 수 없습니다."));
            }
        }