[HttpPost] // @PostMapping
        public async Task <IActionResult> AddAsync([FromBody] MachineType dto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            // <>
            var temp = new MachineType();

            temp.Name = dto.Name;
            //temp.Title = dto.Title;
            //temp.Content = dto.Content;
            //temp.Created = DateTime.Now;
            // --TODO--
            // </>

            try
            {
                var model = await _repository.AddMachineTypeAsync(temp);

                if (model == null)
                {
                    return(BadRequest());
                }

                //[!] 다음 항목 중 원하는 방식 사용
                if (DateTime.Now.Second % 60 == 0)
                {
                    return(Ok(model)); // 200 OK
                }
                else if (DateTime.Now.Second % 3 == 0)
                {
                    return(CreatedAtRoute(nameof(GetMachineTypeById), new { id = model.Id }, model)); // Status: 201 Created
                }
                else if (DateTime.Now.Second % 2 == 0)
                {
                    var uri = Url.Link(nameof(GetMachineTypeById), new { id = model.Id });
                    return(Created(uri, model)); // 201 Created
                }
                else
                {
                    // GetById 액션 이름 사용해서 입력된 데이터 반환
                    return(CreatedAtAction(nameof(GetMachineTypeById), new { id = model.Id }, model));
                }
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message);
                return(BadRequest());
            }
        }