public IActionResult RemoveMachine(int id)
        {
            IActionResult result = Unauthorized();

            try
            {
                _db.RemoveEquipmentById(id);
                result = Ok();
            }
            catch (Exception)
            {
                result = BadRequest(new { Message = "Failed to remove machine" });
            }
            return(result);
        }