public async Task <IActionResult> Delete(int id)
        {
            try
            {
                await _machineService.DeleteMachineByIdAsync(id);

                return(NoContent());
            }
            catch (Exception e)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, e.Message));
            }
        }